a mass resting on a horizontal, frictionless surface is attached to one end of a spring; the other end is fixed to a wall. it takes 3.1 j of work to compress the spring by 0.13 m . if the spring is compressed, and the mass is released from rest, it experiences a maximum acceleration of 12 m/s2.find the value of the spring constant.