if an object`s mass is 9 kg and it`s height is 7 m what is the potential energy of the object

No idea. Where is the center of mass of the object?

m g h where h is the height of the center of mass above your reference plane (probably ground)