The correct option is B (mm+M)v
Initial momentum of the system = mv, since body of mass M is at rest. After the inelastic collision, the bodies stick together and the mass of the composite body is (m + M). If V is the speed of the composite
body, its momentum will be (m + M)V. From the principle of conservation of momentum, we have mv = (m + M)V
or V=(mm+M)v
Hence the correct choice is (b).