A right angled isosceles triangular wedge of mass is placed on a smooth horizontal surface. Two point like masses & , tied to each other by a thread, are placed on the wedge. Friction & masses of the thread & pulley are negligible. The bodies are released at . The distance moved by the wedge until the "instant reaches the bottom of wedge" is