One pipe can fill a pool in 6 hours. The second pipe can drain the pool in 18 hours. How long will it take to fill the pool if both pipes are working?