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

Click button first when a symbol is required. X

There were gold, green and brown balls in a box. Sean put another 7 gold balls and 2 brown balls in the box, then the ratio of the number of green balls to the number of brown balls became 5 : 2. Then, he doubled the number of gold balls and removed 30 brown balls. The ratio of the number of gold balls to green balls became 2 : 1. He counted and found that there were a total of 123 balls left in the box. Find the number of gold balls that he had in the end.