A string with one end fixed on a rigid wall passing over a fixed frictionless pulley at a distance of 2 m from the wall, has a point mass M=2 kg attached to it at a distance of 1 m from the wall. A mass m=0.5 kg attached at the free end is held at rest so that the string is horizontal between the wall and the pulley, and vertical beyond the pulley. What will be the speed which the mass M will hit the wall when the mass m is released? (Take g=10 m/s2)