A community swimming pool has two inlet pipes. One pipe can fill the pool in three hours. The other can fill it in six hours. The pool also has one outlet pipe that can empty the pool in four hours. One day, after cleaning the pool, a maintenance man started filling up the pool using the two inlet pipes. However, he forgot to close the outlet pipe. How long did it take to fill the pool with all three pipes open?