Sounds like The Netherlands, no? At the very least, the same system is used in The Netherlands to this day.
I graduated high school with a barely-passing grade in Math A, and years later was able to finish exams in Math B with a passing grade. All it took was dedicated practice, and I suck at math! You can do it as well.