Given:
The mass of the object is,
[tex]m=0.050\text{ kg}[/tex]The spring constant is,
[tex]k=150.0\text{ N/m}[/tex]The compression of the spring is,
[tex]\begin{gathered} x=15.0\text{ cm} \\ =0.15\text{ m} \end{gathered}[/tex]To find:
The work would be done on this spring to compress it
Explanation:
The force on the spring is,
[tex]\begin{gathered} F=\lvert{kx}\rvert \\ =150.0\times0.15 \\ =22.5\text{ N} \\ \end{gathered}[/tex]The work done in the spring,
[tex]\begin{gathered} W=Fx \\ =22.5\times0.15 \\ =3.375\text{ J} \end{gathered}[/tex]Hence, the work is 3.375 J.