Question
There were pink, gold and black balls in a bottle. Sean put another 7 pink balls and 9 black balls in the bottle, then the ratio of the number of gold balls to the number of black balls became 5 : 2. Then, he doubled the number of pink balls and removed 21 black balls. The ratio of the number of pink balls to gold balls became 2 : 1. He counted and found that there were a total of 98 balls left in the bottle. Find the number of pink balls that he had in the end.
5 m

Click button first when a symbol is required. X

There were pink, gold and black balls in a bottle. Sean put another 7 pink balls and 9 black balls in the bottle, then the ratio of the number of gold balls to the number of black balls became 5 : 2. Then, he doubled the number of pink balls and removed 21 black balls. The ratio of the number of pink balls to gold balls became 2 : 1. He counted and found that there were a total of 98 balls left in the bottle. Find the number of pink balls that he had in the end.