r + g = 300
g = 3r
Now, we can substitute two ways...
r + 3r = 300
4r = 300
r = 75
g = 3(75) = 225
Ooooorrr, solve the first equation for g and set the two "values" for g equal to each other...
g = 300 - r
300 - r = 3r
300 = 4r
75 = r
s = 300 - 75 = 225
Hope this helps!