Centre of Mass of Two Bodies
The centre of mass is the mass-weighted average position — the point a system balances about and moves as if all mass were concentrated there.
It is x_c = (m_1·x_1 + m_2·x_2)/(m_1 + m_2). where m_1, x_1 and m_2, x_2 are the two masses and their positions.
Take the mass-weighted average position.
Results
The centre of mass lies closer to the heavier body. It extends to many bodies and to 2-D/3-D by averaging each coordinate.