Before the weight is added.
The spring is compressed by the upper plate alone: kx1=mg, so x1=mg/k.
With W on top.
Compression x2=(mg+W)/k.
After W is removed.
The upper plate performs SHM about the equilibrium compression x1, with amplitude
A=x2−x1=kW.
At the highest point the spring is stretched by A−x1=kW−mg.
Condition for the lower plate to lift.
The stretched spring must pull up on the lower plate with at least its weight:
k⋅kW−mg≥mg⟹W≥2mg.
So W must be just more than 2mg.
(B)