There are 161 glass balls. Red is five times as much as yellow, and yellow is as much as green. How many glass balls are there in each of the three colors?

There are 161 glass balls. Red is five times as much as yellow, and yellow is as much as green. How many glass balls are there in each of the three colors?

Set X yellow, X green and 5x red
5X+X+X=161
7X=161
X=23
∴5X=115
Answer: yellow and green each 23, red 115