Potential energy is (mass)x(gravity)x(height).
Energy never magically appears or disappears. The total amount is constant. If an object lost some potential energy by dropping to a lower height, that PE turned into kinetic energy.
These factoids will take you through. 17.....20 .