Jack can paint the bedroom in 12 hours, and Rick can do it in 10 hours. They work together for three hours. How long will it take Jack to finish the job alone?