Question
There were yellow, purple and blue balls in a container. Sean put another 3 yellow balls and 2 blue balls in the container, then the ratio of the number of purple balls to the number of blue balls became 5 : 3. Then, he doubled the number of yellow balls and removed 16 blue balls. The ratio of the number of yellow balls to purple balls became 2 : 1. He counted and found that there were a total of 128 balls left in the container. Find the number of yellow balls that he had in the end.
5 m

Click button first when a symbol is required. X

There were yellow, purple and blue balls in a container. Sean put another 3 yellow balls and 2 blue balls in the container, then the ratio of the number of purple balls to the number of blue balls became 5 : 3. Then, he doubled the number of yellow balls and removed 16 blue balls. The ratio of the number of yellow balls to purple balls became 2 : 1. He counted and found that there were a total of 128 balls left in the container. Find the number of yellow balls that he had in the end.