Here is a simple flowchart that will help you understand the rules concerning the claiming of an exemption for a dependent: