A block of mass m1 lies on a smooth horizontal table and is connected to another freely hanging block of mass m2 by a light inextensible string passing over a smooth fixed pulley situated at the edge of the table as shown in the figure. Initially the system is at rest with m1 a distance d from the pulley. Then the time taken for m1 to reach the pulley is.