Three pumps, M, N and O are opened to fill a tank such that M and N can fill the tank alone in 18 min. and 23 min. respectively and O can empty it in 15 min. After 3 minutes the emptying pipe is closed. In how many minutes the tank will be full in this way? A) 20 B) 25 C) 18 D) 12