In the first case, the force acting on the spring is the weight of the mass:

This force causes a stretching of

on the spring, so we can use these data to find the spring constant:

In the second case, the first mass is replaced with a second mass, whose weight is

And since we know the spring constant, we can calculate the new elongation of the spring:
<u>Note that</u>:
The gravitational potential energy = 
where m: is the mass, g: the acceleration due to the gravity and h is the height from the earth surface
Then, we can increase the gravitational potential energy by increasing the mass or the height from the earth surface
<u>In our question</u>, we can increase the gravitational potential energy by
<u>A) Strap a boulder to the car so that it wights more.</u>
Answer:
heat energy that is needed to raise tempeture