Hook’s relates the force (F) pulling or pushing on a spring (or other elastic material) to the amount the spring stretches or compresses land this force is directly proportional to the extension Δl.
Where k is the force (or spring) constant.
When the hanger of mass M is loaded with a mass m is displaced slightly from its equilibrium position and then is released, it will perform simple harmonic motion with periodic time.