To solve this problem it is necessary to apply the concepts related to Hooke's Law as well as Newton's second law.
By definition we know that Newton's second law is defined as
[tex]F = ma[/tex]
m = mass
a = Acceleration
By Hooke's law force is described as
[tex]F = k\Delta x[/tex]
Here,
k = Gravitational constant
x = Displacement
To develop this problem it is necessary to consider the two cases that give us concerning the elongation of the body.
The force to keep in balance must be preserved, so the force by the weight stipulated in Newton's second law and the force by Hooke's elongation are equal, so
[tex]k\Delta x = mg[/tex]
So for state 1 we have that with 0.2kg there is an elongation of 9.5cm
[tex]k (9.5-l)=0.2*g[/tex]
[tex]k (9.5-l)=0.2*9.8[/tex]
For state 2 we have that with 1Kg there is an elongation of 12cm
[tex]k (12-l)= 1*g[/tex]
[tex]k (12-l)= 1*9.8[/tex]
We have two equations with two unknowns therefore solving for both,
[tex]k = 3.136N/cm[/tex]
[tex]l = 8.877cm[/tex]
In this way converting the units,
[tex]k = 3.136N/cm(\frac{100cm}{1m})[/tex]
[tex]k = 313.6N/m[/tex]
Therefore the spring constant is 313.6N/m