The restoring force (F_s) of a spring is directly proportional to its displacement (x).
When stretched, the restoring force is negative (pulling left). Energy (6.3J) equals the area under the Force-Displacement graph.