In order to remove water from a flooded basement, two pumps, each rated at 45 gallons per minute, are used. After half an hour, the one pump burns out, and the second pump finishes removing the water half an hour later. How many gallons of water were removed from the basement?