A mass of 341 g connected to a light spring of force constant 17.2 N/m oscillates on a horizontal, frictionless track. The amplitude of the motion is 7.9 cm. Calculate the total energy. Answer in units of J.