The gravitational potential energy of an object, measured with respect to the ground, is given by

where m is the object's mass, g is the gravitational acceleration and h is the height of the object measured from the ground.
In our problem, the mass of the plane is m= 5 tons = 5000 kg, while the potential energy is

so we can re-arrange the previous formula and use these data to calculate h, the height of the airplane:
