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 in is hanging in air as shown in Fig. A particle of mass in strikes the mass in from below in case (I) with a velocity v0 and in case (II) strikes mass in with a velocity v0 from top and sticks to it.