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

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

Let the maximum elongation of the spring be .
Using energy conservation
Loss in kinetic energy of both blocksGain in spring energy
Asked in: JEE Main 2022 (26 Jul Shift 1)