Given data,
Mass,
[tex]m=56\text{ kg}[/tex]Acceleration,
[tex]a=3.5m/s^2[/tex]Spring constant,
[tex]k=2900\text{ N/m}[/tex]Given acceleration is upward, hence
[tex]\begin{gathered} (g+a)=9.8m/s^2+3.5m/s^2 \\ (g+a)=13.3m/s^2 \end{gathered}[/tex]Consider the equation of force,
[tex]\begin{gathered} F=kx \\ m(g+a)=kx \\ x=\frac{m(g+a)}{k} \end{gathered}[/tex]Substitute the given and calculated values.
[tex]\begin{gathered} x=\frac{56\text{ kg}\times13.3m/s^2}{2900\text{ N/m}} \\ x=25.6\text{ cm} \end{gathered}[/tex]Hence, the spring compressed is 25.6 cm.