Two tanks hold a total of 54 gallons of a toxic solvent . One tank holds 9 gallons more than twice the amount in the other . How many gallons does each tank hold ?