Money matters in education, as long as you spend it at the right time and on the right students