Tom has a 500 gallon pool. He is able to drain it at a rate of 15 gallons per minute.  if the pool still has 170 gallons of water remaining, how many minutes was the pool draining?