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

Click button first when a symbol is required. X

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