https://nces.ed.gov/programs/coe/indicator/cmd/education-exp...
We spend far more than most countries per pupil, for much poorer results
https://worldpopulationreview.com/country-rankings/pisa-scor...
It's pretty clear that while spending is a factor, it's probably not the biggest one. The countries that seem to do best are those that combine adequate funding with real rigor in instruction.