I remember the first time I got an F on an assignment even though I'd gotten the correct answer to every problem.
I hadn't reached my correct answers the "right" way.
I hadn't reached my correct answers the "right" way.
I would also lose points for "not showing my work", but if you can't factor, say, x^2-9 in your head, maybe you have deeper issues.
I realized that math in school was more like one of those simon games where you just mindlessly press the arbitrary sequence of lights you just saw, than actual mathematics. This analogy helped me suffer through "school math" while I perused real math on my own.
I also once got an answer marked wrong because the teacher couldn't understand my intermediate steps, even though the answer (and steps) were actually correct. When I showed him, he refused to change my grade. That was at University.