It states that the force F needed to extend or compress a spring by some distance X is proportional to that distance.
For elastic materials, they extend more in same amount of force, (as they are directly proportional), due to it's elastic nature (presence of large deforming force)
Hope this helps!