A sick programmer was covered at work by two interns. It takes 3 times longer for one of them to do the work than for a programmer, and it takes twice longer for the other intern to do the work than for the same programmer. How many hours would it take a programmer to do all the work if two interns, working together, completed it in 6 hours?