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