A metal block of heat capcity 80 J/∘C placed in a room at 20∘C is heated electrically. The heater is switched off when the temperature reaches 30∘C. The temperature of the block rises at the rate of 2∘C/s when the heater is switched on and falls at the rate of 0.2∘C/s just after the heater is switched off. Assume Newton's law of cooling to be applicable. If the power radiated at 25∘C represents the average value in the heating process, the time for which the heater was kept on is: