Two pipes M and N can fill a pool in 40 minutes and 60 minutes, respectively. The entire pool can completely be emptied by another pipe P in 30 minutes. M, N and P are opened alternatively and each is kept open for just 1 minute. In how much time will the pool be filled?
Answer: B