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