A boy is hanging from the free end of a massless rope of length 40 m. The mass of the boy is 20 kg and the maximum tension that the rope can bear is 300 N. Then starting from rest, the minimum time in which the boy can climb the other end of the rope is