Question
There were white, gold and purple balls in a bottle. Sean put another 9 white balls and 6 purple balls in the bottle, then the ratio of the number of gold balls to the number of purple balls became 5 : 3. Then, he doubled the number of white balls and removed 15 purple balls. The ratio of the number of white balls to gold balls became 2 : 1. He counted and found that there were a total of 39 balls left in the bottle. Find the number of white balls that he had in the end.
5 m

Click button first when a symbol is required. X

There were white, gold and purple balls in a bottle. Sean put another 9 white balls and 6 purple balls in the bottle, then the ratio of the number of gold balls to the number of purple balls became 5 : 3. Then, he doubled the number of white balls and removed 15 purple balls. The ratio of the number of white balls to gold balls became 2 : 1. He counted and found that there were a total of 39 balls left in the bottle. Find the number of white balls that he had in the end.