Three water pipes are used to fill up a swimming pool. The first pipe alone takes 8 hours to fill the pool, the second pipe alone takes 12 hours to fill the pool, and the third pipe alone takes 24 hours to fill the pool. If all three pipes are opened at the same time, how long will it take to fill the pool?