In the given figure, a mass is attached to a horizontal spring which is fixed on one side to a rigid support. The spring constant of the spring is . The mass oscillates on a frictionless surface with time period and amplitude . When the mass is in equilibrium position, as shown in the figure, another mass is gently fixed upon it. The new amplitude of oscillation will be:

Initially block M executes SHM with amplitude A.
When it passes through equilibrium position, its speed is maximum:
where
So
Now mass m is gently placed on it and sticks, so use conservation of momentum at that instant:
Thus
Now new mass is
M+m
so new angular frequency is
At the instant of sticking, system is at equilibrium position, so displacement is zero and all energy is kinetic.
For new SHM, at equilibrium,
where A′ is new amplitude.
So
Substitute:
Simplifying,
Tagged Spring-block oscillations. Machine-assigned, so read it as a strong shortlist rather than a verdict.