When 18 gallons of water are pumped into an empty tank, the tank is filled to three fourths of its capacity. How many gallons of water will the tank hold?