Question
There were yellow, purple and red marbles in a jar. Sean put another 6 yellow marbles and 12 red marbles in the jar, then the ratio of the number of purple marbles to the number of red marbles became 5 : 3. Then, he doubled the number of yellow marbles and removed 18 red marbles. The ratio of the number of yellow marbles to purple marbles became 2 : 1. He counted and found that there were a total of 90 marbles left in the jar. Find the number of yellow marbles that he had at first.
5 m

Click button first when a symbol is required. X

There were yellow, purple and red marbles in a jar. Sean put another 6 yellow marbles and 12 red marbles in the jar, then the ratio of the number of purple marbles to the number of red marbles became 5 : 3. Then, he doubled the number of yellow marbles and removed 18 red marbles. The ratio of the number of yellow marbles to purple marbles became 2 : 1. He counted and found that there were a total of 90 marbles left in the jar. Find the number of yellow marbles that he had at first.