From a tank containing 935 gallons of water, 648 gallons were drawn off, after which 247 gallons ran in.How many gallons were in the tank?