Answer:
.
Step-by-step explanation:
The mechanical energy of the system will be the kinetic energy plus the elastic potential energy:
.
We know that the equation for the kinetic energy is
, where m is the mass of the object and v its velocity.
We know that the equation for the elastic potential energy is
, where k is the spring constant and
the compression (or elongation) respect to equilibrium.
So for our values we have:
.