Two pipes $A$ and $B$ can fill a cistern in 24 minutes and 30 minutes, respectively. There is also an outlet C. If all the three pipes are opened together, the cistern is full in 20 minutes. How much time will be taken by $C$ to empty the full cistern?
(a) 30 minutes
(b) 40 mintues
(c) 45 mintues
(d) None of these