The momentum of both the identical balls would eventually be transferred to one another when it comes to a point wherein they will collide. In addition, the phenomenon is called an elastic collision wherein both the momentum and energy of the system would considered to be conserved.
First of all, it depends on how far away the spaceship is from both objects, and the SPEED of the ship. if it is closer to the moon, the gravity might be equal for each of the objects.
<em>if the object has 0 potential energy it means it is on ground ..
<u>explanation :
</u>to measure potential energy we take ground as a reference point but when object is placed on reference point i.e ground then height is 0..
as potential energy = mgh .. here h becomes 0 so potential energy is 0 joules..</em>