See the answer below...
Think it to be
Hope it helps...
We know that Increase in length is directly proportional to force applied but negative in sign.
So we can write,
From the equation we can write that
Here,we also know for the spring
So for the spring