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