two pipes a and b can fill a cistern in 12 and 20 minutes respectively , and a third pipe c can empty it in 30 minutes . how long will it take to fill the cistern if all the three are opened at the same time ?