Its a bit hard to read your question but it looks like its a mixture of 12% and 17% solutions forming a 14% solution.
This is essentially like a molarity question. The total volume must be ten, and the average the %s must be 14.
The answer is 4 gallons of 17% and 6 gallons of 12%