The gravitational potential energy U is defined as the product of mass m, the acceleration of gravity g and the height of object h.

We do not have the mass of the hiker. But we know that its W weight is:

Where

So:
.
So:

J
The hiker has gained 30,000 J of energy