You can
put this solution on YOUR website!Let

= gallons of red paint needed
Let

= gallons of green paint needed
given:
(1)

(2)

----------------
From (2)
(2)

(2)

Multiply both sides of (1) by

and add (2) to (1)
(1)

(2)

and, since
(1)

16 gallons of red and 20 gallons of green are needed