Answer:

Explanation:
For the climbing rope, the force is given by,

Now, we know that for any conservative force,
(one dimensional case)
where, V = potential energy
Therefore, the potential energy of the rope is given by,

a is a constant, which can be taken to be zero depending on our choice of zero potential. Hence,

Similarly, we can find the potential energy of an ideal spring,

Now, it is given that at x = d,

or, 
or, 