I have a spring on a horizontal frictionless surface. Initially it is un-stretched and at x = 0 cm. I then pull it back 10 cm and release it. What is the amplitude of the oscillations (the object has mass m)?

The pull-back distance becomes the amplitude of vibration.