We are asked to determine how much of a 12% ethanol fuel mixture should be mixed with 10 gallons of 4% ethanol fuel mixture to get a mixture that is 10% ethanol.
Let x be the required number of gallons of ethanol mixture.
The amount of ethanol fuel mixture in x gallons of solution with 12% ethanol fuel mixture is given by

The amount of ethanol fuel mixture in 10 gallons of solution with 4% ethanol fuel mixture is given by

The amount of ethanol fuel mixture in (10+x) gallons of solution with 10% ethanol fuel mixture is given by

So, the equation becomes

Let us solve the above equation for x.

30 gal of 12% ethanol solution is needed to produce a 10% ethanol solution.