Question
There were brown, yellow and purple balls in a box. Sean put another 5 brown balls and 9 purple balls in the box, then the ratio of the number of yellow balls to the number of purple balls became 5 : 2. Then, he doubled the number of brown balls and removed 29 purple balls. The ratio of the number of brown balls to yellow balls became 2 : 1. He counted and found that there were a total of 124 balls left in the box. Find the number of brown balls that he had in the end.
5 m

Click button first when a symbol is required. X

There were brown, yellow and purple balls in a box. Sean put another 5 brown balls and 9 purple balls in the box, then the ratio of the number of yellow balls to the number of purple balls became 5 : 2. Then, he doubled the number of brown balls and removed 29 purple balls. The ratio of the number of brown balls to yellow balls became 2 : 1. He counted and found that there were a total of 124 balls left in the box. Find the number of brown balls that he had in the end.