Education

You paid $32,000 and had $26,000 in grants and scholarships.  That left $6,000in out of pocket expenses.  Your $10,000 in 529 withdrawals covered that $6,000 with $4,000 left over.  When you use 529 money to cover your expenses, you  cannot claim either of the educational tax credits for the same expense.