Logan can paint a room in 12 hours. Marcus can paint the same room in 16 hours. How long does it take for both Logan and Marcus to paint the room if they are working together?