The Gravitational force between two bodies does not depend on (a) the sum of their masses
Gravitation or just gravity is the force of attraction between any two bodies. Each body in this universe attracts other bodies towards itself with a force known as Gravitational Force, thus gravitation is a study of the interaction between two masses.
Everybody in the universe pulls every other body with a force that is directly proportional to their mass-produced and inversely proportional to the distance square between them.
The Gravitational force formula is given by
G is universal gravitational constant,
m1 and m2 are mass of bodies
r is the radius between the two masses