There are some caps in a box. 1/6 are red, 1/3 are blue, and 3/7 of the remainder are green. If there are 27 green caps, how many caps are there all together?

1 answer

3/7 (x - x/6 - x/3) = 27
x = 126