According to Hooke's Law, F=-kx where F is the restoring force, k is the spring constant and x is the length of extension/compression.
When an applied force compresses a spring, a restoring force will act in the opposite direction.
When a spring is compressed and is in equilibrium (not...