Question
There were red, purple and blue balls in a box. Sean put another 6 red balls and 12 blue balls in the box, then the ratio of the number of purple balls to the number of blue balls became 6 : 5. Then, he doubled the number of red balls and removed 30 blue balls. The ratio of the number of red balls to purple balls became 2 : 1. He counted and found that there were a total of 177 balls left in the box. Find the number of red balls that he had in the end.
5 m

Click button first when a symbol is required. X

There were red, purple and blue balls in a box. Sean put another 6 red balls and 12 blue balls in the box, then the ratio of the number of purple balls to the number of blue balls became 6 : 5. Then, he doubled the number of red balls and removed 30 blue balls. The ratio of the number of red balls to purple balls became 2 : 1. He counted and found that there were a total of 177 balls left in the box. Find the number of red balls that he had in the end.