Question
There were green, red and yellow marbles in a bottle. Sean put another 10 green marbles and 15 yellow marbles in the bottle, then the ratio of the number of red marbles to the number of yellow marbles became 5 : 2. Then, he doubled the number of green marbles and removed 17 yellow marbles. The ratio of the number of green marbles to red marbles became 2 : 1. He counted and found that there were a total of 51 marbles left in the bottle. Find the number of green marbles that he had in the end.
5 m

Click button first when a symbol is required. X

There were green, red and yellow marbles in a bottle. Sean put another 10 green marbles and 15 yellow marbles in the bottle, then the ratio of the number of red marbles to the number of yellow marbles became 5 : 2. Then, he doubled the number of green marbles and removed 17 yellow marbles. The ratio of the number of green marbles to red marbles became 2 : 1. He counted and found that there were a total of 51 marbles left in the bottle. Find the number of green marbles that he had in the end.