A swimming pool initially contains 1500 gallons of water. Water is draining from the pool at a constant rate of 25 gallons per hour, and simultaneously, water is being added to the pool through a hose at a constant rate of 10 gallons per hour. After how many hours will the pool contain exactly 1200 gallons of water?