The correct option is
B [kmM(M+m)]1/2xAnswer is A.Consider the two blocks plus the spring to be the system. No external force acts on this system in horizontal direction. Hence, the linear momentum will remain constant.
Suppose, the block of mass M moves with a speed v1 and the other block with a speed v2 after losing contact with the spring.
From conservation of linear momentum in horizontal direction we have,
Mv1−mv2=0 or v1=mMv2... (i)
Initially, the energy of the system =12kx2
Finally, the energy of the system =12mv22+12Mv21
As there is no friction, mechanical energy will remain conserved.
Therefore, 12mv22+12Mv21=12kx2
Solving Eqs. (i) and (ii); we get
or, v2=[kMm(M+m)]1/2x and v1=[kmM(M+m)]1/2x.
Hence, the final speed of the block of mass M is [kmM(M+m)]1/2x.