Step-by-step explanation:
(i) Height of tree, h = 4 m
Mass of Ninja, m = 30 kg
The gravitational potential energy on the top branch of the tree is given by :

g is acceleration due to gravity

(ii) If he were at a height of 2 meters from the ground, its potential energy will be :

g is acceleration due to gravity

Therefore, this is the required explanation.