Three ventilation fans, each working alone, can clear the smoke out of a room in 12 hours, 16 hours, and 24 hours respectively. How long would it take to clear out the smoke in the room if all three fans are used?