When Alice and Bob work together, they can paint a room in 3 hours. When Alice and Carol work together, it takes 4 hours. When Bob and Carol work together, it takes 6 hours. How long does it take to paint the room if all three work together?