The gravitational potential energy U is defined as the product of mass m, the acceleration of gravity g and the height of object h.
[tex]U = mgh[/tex]
We do not have the mass of the hiker. But we know that its W weight is:
[tex]W = mg[/tex]
Where
[tex]g = 9.8 m/s^2[/tex]
So:
[tex]m = \frac{W}{g}\\\\m = \frac{600}{g}[/tex].
So:
[tex]U = (\frac{600}{g})gh\\\\U = (600N)(50m)[/tex]
[tex]U = 30000[/tex]J
The hiker has gained 30,000 J of energy