The water in a public swimming pool can be emptied through a single pipe in 6 hours. When this pipe is closed, a second pipe can fill the pool in 4 hours. If both pipes are accidentally left open, how long will it take to fill the pool?