The description of both systems can be done by means of the following two equations of equilibrium:
By diving the first expression by the second one, the following relation is found:
The initial elongation of the spring is:
The spring constant is found by substituting known variable in any of the two equations of equilibrium. For comfort and quickness reasons, the first formula is used: