A pool can be filled by one pipe in 8 hours and by a second pipe in 9 hours. How long will it take using both pipes to fill the​ pool?