Get your taxes done using TurboTax

The 24 year old is not a dependent, the $4000 limit is fixed rule.  The 22 year old can be a dependent if he is in school full time and does not provide more than half his own support.