Question 945690
A CHEMIST"S NOTE: Be careful with acids. Do not use them or mix them unless you know exactly what they are, and what will or may happen when you mix them.
I have tablets that are mostly ascorbic acid (vitamin C) an others that are almost pure acetylsalicilic acid (aspirin) in the medicine cabinet section of my kitchen at home. Most people can swallow one of those tablets without ill effects.
In the lab, in a vented cabinet under the fume hood, I have liquids labeled sulfuric acid, nitric acid, glacial acetic acid, trifluoroacetic acid, and hydrochloric acid. The last one is a 36%w/w solution of hydrogen chloride gas in water. Do not ingest those.
I also have a lot of solids in my lab shelves with labeled names that include the word acid. The labels tell you about their dangers. 
 
According to math teachers who never learned enough chemistry:
1) "Acid" is a term that is descriptive enough.
2) "A 10% solution" is a phrase with an unequivocal meaning.
3) When you mix volumes of liquids, the volume of the resulting mixture is the sum of the volumes mixed.
In the real world, none of that is true, but in the math teachers' world it works just fine.
In both worlds, we all agree that the amount of "acid" in the mixture is the sum of the amounts of "acid" that were in the solutions that were mixed.
 
{{{x}}}= gallons of 5% acid solution that we need to mix with 20 gallons of a 10% acid solution to obtain an 8% acid solution.
Your teacher believes that 100 gallons an "8% solution of acid" contains 8 gallons of some liquid called "acid". I would describe that solution as an 8% (v/v) solution, where the "(v/v)" means volume in volume.
Your teacher believes that 100 gallons a "5% solution of acid" contains 5 gallons of some liquid called "acid". So, {{{x}}} gallons of that solution contain {{{5x/100=0.05x}}} gallons of acid.
Your teacher also believes that 100 gallons a "10% solution of acid" contains 10 gallons of some liquid called "acid".  So, {{{20}}} gallons of that solution contain {{{20*10/100=2}}} gallons of "acid".
When you mix something containing {{{2}}} gallons of acid with something containing {{{0.05x}}} gallons of acid,
you get a mixture containing {{{green(0.05x+2)}} gallons of "acid".
Your teacher believes that the total volume the mixture will the sum of the volumes mixed,
{{{20+x}}} gallons,
That mixture is expected to be an "8% solution of acid", and
since your teacher believes that 100 gallons an "8% solution of acid" contains 8 gallons of some liquid called "acid",
{{{20+x}}} gallons of that solution contain
{{{(20+x)*8/100=red(0.08(20+x))}}} gallons of "acid".
So our equation is
{{{red(0.08(20+x))=green(0.05x+2)}}
{{{0.08*20+0.08x=0.05x+2}}}
{{{1.6+0.08x=0.05x+2}}}
{{{0.08x-0.05x=2-1.6}}}
{{{(0.08-0.05)x=0.4}}}
{{{0.03x=0.4}}}
{{{x=0.4/0.03}}}
{{{highlight(x=13.3)}}} gallons (rounded).