A pool can be filled by a pipe in 3 hours. it takes 3 times as long for another pipe to empty the pool. how long will it take to fill the pool if both pipes are open?