Declaring scholarships as income for American Opportunity Credit on taxes

From the Fact Sheet:
A student may allocate Pell Grant funds toward living expenses up to the amount of her
actual living expenses, which may differ from the living expenses estimated by her school in
computing her official cost of attendance under student aid rules.