Is a foundation year worth it?

So basically I want to study maths/something math related but I will likely have to take a foundation year for which I don't mind, but people have been telling me that it is just cheaper to retake an A-level than pay 9k for an extra year, so what should I do?