Two masses 2m and m are connected by an inextensible light string. The string is passing over a light frictionless pulley. The mass 2m is resting on a surface and mass m is hanging in air as shown in figure. A particle of mass m strikes the mass m from below in case (I) with a velocity v0 and in case (II) strikes mass m with a velocity v0 from top and sticks to it