A spring and mass system are oscillating with an amplitude of 5.4 cm. The spring constant is 166 N/m and the mass is 540 g. Find the mechanical energy of the system

1/2 amplitude is the stretch, so at max stretch total energy is spring PE

energy=1/2 k x^2=1/2 *166 *2.7^2