I think the explanation given for the solution is incorrect as question is
"Which of the following states had the largest total public elementary and secondary school education expenditure?"
so we have to take into account only the population of School aged children and not the whole population. Please do correct me if i am wrong.