You correctly obtained x = 14 from your equation as a solution, but INCORRECTLY interpreted it . . . . These 14 gallons is the amount of the 25% solution. So, the answer is: 14 gallons of the 25% solution, and the rest, 20-14 = 6 gallons is the amount of the 15% solution. CHECK for the concentration := 0.22 = 22%, the concentration of the final mixture.
You let the amount of 25% solution to be mixed, equal to x. This then led to your equation: .25x + .15(20 - x) = .22(20)
When you solved that for x, you got 14 gallons. Remember, x represents the amount of 25% solution, NOT the amount of 15% solution.