The mechanic he's a family friend. He buys cars does needed work on them and then sells them off. Yes it failed only on the brakes. I've not got the fail certificate as of yet no, thank you
Family friend or not he is a car trader and dealer. You are therefore, protected by Consumer law - Sale of Goods Act.
He must repair any faults within the first 6 months if those faults existed when the car was sold. You need to be able to show the car had dodgy brakes when you bought it. If you know for certain how many miles the car had when you bought it and the mileage on the fail test sheet then this will help. There is a minimum thickness on brake pads for a test and if you have only driven, say, 500 miles, then the pads must have been below the minimum for them to be down to the metal.
So, this mechanic is a family "friend". From what you have said, he is taking you for a ride here. If he is also the MOT tester then he should only charge you the maximum specified, not a figure that suits him.
Put this down to experience and do not use this "friend" again. Find a trusted local garage that does MOTs nearby and take the car there. Get a price to fix the brakes and if it seems reasonable then have them fix your car and re-test it.
One last thing. There is an idiot on here who calls himself Dennis and you will have read his posts asking for details and other nonsense. Under no circumstances reply to him or you will be seriously confused. All the main contributors are on his 'ignore' setting so he wont see our replies, only yours. Good luck.