An inlet pipe on a swimming Pool can be used to fill the pool in 36 hours. The drainpipe can be used to empty the pool in 40 hours. If the pool is 2/3 filled using the inlet pipe and then the drainpipe is accidentally opened, how long from that time will it take to fill the pool?