Correct Answer - B
`(B)` The initial extension in spring is `x_(0)=(mg)/(k)` Just after collision of `B` with `A` the speed of combined mass is `(v)/(2)`.
For the spring to just attain natural length the combined mass must rise up by `x_(0)=(mg)/(k) (` sec. fig. `)` and comes to rest.
Applying conservation of energy between initial and final states
`(1)/(2)2m((v)/(2))^(2)+(1)/(2)k((mg)?(k))^(2)=2mg((mg)/(k))`
Solving we get `v=sqrt((6mg^(2))/(k))`