When two pipes fill a pool together, they can finish in 5 hours. If one of the pipes fills half the pool then the other takes over and finishes filling the pool, it will take them 18 hours. How long will it take each pipe to fill the pool if it were working alone?