When the mass of 2.0 kg is attached to the spring, the force applied to the spring is the weight of the mass, so

This force stretches the spring by

, so we can use Hook's law to find the spring constant:

Then the mass of 2.0 kg is removed and replaced with another mass m2=2.7 kg. The force produced by this mass is equal to its weight:

And so, we can use again Hook's law to calculate the new stretch of the spring:
