Let A1 = number of gallons of the 25% solution
A2 = number of gallons of the 10% solution
Then A1 + A2 = 15 and using a weighted average, we have (25A1 + 10A2)/(A1 + A2) = 23
The weighted average becomes 25A1 + 10A2 = 15(23) = 345 so,
A1 + A2 = 15
25A1 + 10A2 = 345 Solving the two equations simultaneously, we find that
A1 = 13 gallons of the 25% alcohol and A2 = 2 gallons of 10% alcohol