Pete and Pam are planning to paint a house together. Pete thinks it would take him 2 times as long as it would take Pam to paint the entire house. Working together, they can complete the job in 18 hours. How long will it take each of them, working alone to complete the job?