Nathan, let's call each gallon of 30-cent gas a and each gallon of 35-cent b.
If we need 50 gallons total, a + b = 50
As far as the mixtures, 30a + 35b = 32(50)
Now, we "solve" the first equation for either a or b. Let's do a.
a = 50 - b
Now we substitute this "value" for a in the 2nd equation.
30(50 - b) + 35b = 1600
1500 - 30b + 35b = 1600
5b = 100
b = 20
a = 50 - b = 50 - 20 = 30
Hope this helps!