Education funding is a mess, and schools, teachers and young people will suffer