The distance, x, given that the potential energy increased by 12 J, is 0.35 m
How to calculate the distance x?
The energy and distance (i.e compression or extension) of a spring are related according to the following equation:

Where
- E is the energy stored in the spring in joule (J)
- K is the spring constant in newton per meter (N/m)
- x is the distance (i.e compression or extension) in meters (m)
From the question given, the spring constant and energy are given as:
- Spring constant (K) = 200 N/m
- Potential energy of spring (PE) = 12 J
- Distance (x) = ?
From the above information provided by the question, the distance, x can be calculated as follow:

Thus, we can conclude that the distance, x is 0.35 m