At the end of an amusement park ride, a boat lands in a pool, splashing out a lot of water. Three inlet pipes, each working alone, can fill the pool in 8 seconds, 12 seconds, and 16 seconds, respectively. How long would it take to fill the pool if all three inlet pipes are used?