Question
There were pink, red and brown balls in a container. Sean put another 5 pink balls and 7 brown balls in the container, then the ratio of the number of red balls to the number of brown balls became 5 : 3. Then, he doubled the number of pink balls and removed 24 brown balls. The ratio of the number of pink balls to red balls became 2 : 1. He counted and found that there were a total of 84 balls left in the container. 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, red and brown balls in a container. Sean put another 5 pink balls and 7 brown balls in the container, then the ratio of the number of red balls to the number of brown balls became 5 : 3. Then, he doubled the number of pink balls and removed 24 brown balls. The ratio of the number of pink balls to red balls became 2 : 1. He counted and found that there were a total of 84 balls left in the container. Find the number of pink balls that he had in the end.