As the other user posted, practicing for tests are extremely important. I grew up middle class, got an average score on my tests (but I did really well in math)
My wife, upper middle class, took entire weeks of courses and scored higher than me on everything. But I am better than her at math for sure.