The reasons for failure at maths are many and various, but the solution, says Tony Attwood, is obvious