Pipe A fills a tank of 700 litres capacity at the rate of 40 litres a
minute. Another pipe B fills the same tank at the rate of 30 litres a
minute. A pipe at the bottom of the tank drains the tank at the rate of 20 litres a minute. If pipe A is kept open for a minute and then closed
and pipe B is kept open for a minute and then closed and then pipe C is
kept open for a minute and then closed and the cycle repeated, how long
will it take for the empty tank to overflow?