let n be the number of buttons in the box.
There are some green, red and blue buttons in a box.
1/2 of the buttons are green
and 1/3 of the buttons are blue.
The difference between the number of green and red buttons is 20.



Substitute for G, R and B in
We answer the b) part first:
b) How many buttons are there altogether?
60 buttons altogether.
Substitute in
a) What fraction of the buttons are red?
IOW, what fraction of 60 buttons is 10 red buttons?
Answer = 10/60 = 1/6
Edwin