Hooke's law establishes that the elongation of a spring is directly proportional to the modulus of the force applied to it, as long as the spring is not permanently deformed:
Where:
is the elastic constant of the spring
is the displacement of the spring after applying the force
In this case we have two springs with constants and , displacement and , and the same force is applied to both.