Answer:
[tex]E_M=0.0492J[/tex].
Explanation:
The mechanical energy of the system will be the kinetic energy plus the elastic potential energy: [tex]E_M=K+U_e[/tex].
We know that the equation for the kinetic energy is [tex]K=\frac{mv^2}{2}[/tex], where m is the mass of the object and v its velocity.
We know that the equation for the elastic potential energy is [tex]U_e=\frac{k\Delta x^2}{2}[/tex], where k is the spring constant and [tex]\Delta x[/tex] the compression (or elongation) respect to equilibrium.
So for our values we have:
[tex]E_M=K+U_e=\frac{mv^2}{2}+\frac{k \Delta x^2}{2}=\frac{(0.24kg)(0.4m/s)^2}{2}+\frac{(6N/m)(0.1m)^2}{2}=0.0492J[/tex].