Correct option (B)
Explanation:
(B) The initial extension in spring is x0 = 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 x0 = mg/k (sec fig.) and comes to rest.
