Sam can clean the pool in 5 hours; his coworker Glenn can clean the same pool in 7 hours. One day Sam started to clean the pool by himself and worked for an hour. Then Glenn joined him, and the finished cleaning the pool. How long did it take them to finish cleaning the pool?