A 0.5-kilogram mass is attached to a spring with a force constant of 50 newtons per meter. What is the total energy stored in the mass-spring system if the mass travels a distance of 8 cm in one cycle?
(A) 0.5 J
(B) 0.01 J
(C) 0.04 J
(D) 0.08 J