As per the given figure, two blocks each of mass are connected to a spring of spring constant . If both are given velocity in opposite directions, then maximum elongation of the spring is

Two blocks, each of mass , are connected by a spring of spring constant . Both are given velocity in opposite directions. We need to find the maximum elongation of the spring.
We start by using the concept of reduced mass. When two blocks connected by a spring move toward/away from each other, we use the reduced mass to analyze the oscillation:
Next, we find the relative velocity. Since both blocks are given velocity in opposite directions, the relative velocity of approach (or separation) is:
Then we apply energy conservation. At maximum elongation, the relative velocity becomes zero. All kinetic energy (in the center-of-mass frame) converts to spring potential energy:
Next, we solve for the maximum elongation:
Therefore, the correct answer is Option B: .
Tagged Two-body systems connected by springs. Machine-assigned, so read it as a strong shortlist rather than a verdict.