The oldest way ... the way we've been using as long as we've been
walking on the Earth ... has been to use plants. Plants sit out in the
sun all day, capturing its energy and using it to make chemical compounds.
Then we come along, cut the plants down, and eat them. Our bodies
rip the chemical compounds apart and suck the solar energy out of them,
and then we use the energy to walk around, sing, and play video games.
Another way to capture the sun's energy is to build a dam across a creek
or a river, so that the water can't flow past it. You see, it was the sun's
energy that evaporated the water from the ocean and lifted it high into
the sky, giving it a lot of potential energy. The rain falls on high ground,
up in the mountains, so the water still has most of that potential energy
as it drizzles down the river to the ocean. If we catch it on its way, we
can use some of that potential energy to turn wheels, grind our grain,
turn our hydroelectric turbines to get electrical energy ... all kinds of jobs.
A modern, recent new way to capture some of the sun's energy is to use
photovoltaic cells. Those are the flat blue things that you see on roofs
everywhere. When the sun shines on them, they convert some of its
energy into electrical energy. We use some of what they produce, and
we store the rest in giant batteries, to use when the sun is not there.
I believe that it is electric field
Elastic potential energy is equal to the force times the distance of movement. Elastic potential energy = force x distance of displacement. Because the force is = spring constant x displacement, then the Elastic potential energy = spring constant x displacement squared.
A) 
The total energy of the system is equal to the maximum elastic potential energy, that is achieved when the displacement is equal to the amplitude (x=A):
(1)
where k is the spring constant.
The total energy, which is conserved, at any other point of the motion is the sum of elastic potential energy and kinetic energy:
(2)
where x is the displacement, m the mass, and v the speed.
We want to know the displacement x at which the elastic potential energy is 1/3 of the kinetic energy:

Using (2) we can rewrite this as

And using (1), we find

Substituting
into the last equation, we find the value of x:

B) 
In this case, the kinetic energy is 1/10 of the total energy:

Since we have

we can write

And so we find:

A 'displacement' always consists of a magnitude and a direction. The two cars you just described have displacements with the same magnitude ... 5 km. But if they didn't both drive in the same direction, then their displacements are different.
Remember:
-- 10 m/s² up and 10 m/s² down are different accelerations
-- 30 mph East and 30 mph West are the same speed but different velocity.
-- 5 km North and 5 km South are the same distance but different displacement.