A piece of 1 kg mass is hanged from a spring. The spring constant is 50 N/m. The piece is stretched from the equilibrium position x = 0, t = 0 on a frictional surface to a distance x = 10 cm. The piece is at a distance 5 cm from its mean position. Calculate its kinetic, potential and total energy.