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