A pool with 36 inches of water is filling at a rate of 1 inch per hour. Another pool with 51 inches of water is draining at a rate of 2 inches per hour. After how many hours will the pools have the same height water?