Let the number of gallons of water used be , then gallons of 50% solution is used.

Concentation of gallons of mixture is the pure vinegar content of gallons of 50% solution divided by gallons, and the pure vinegar content of gallons of 50% mixture is , so as the new solution is to be 15%:

RonL