A mass by itself doesn't have a "gravity". Gravity is defined as "a fundamental force which causes mutual attraction between all things that have mass." (
source)
So for gravity to exist, you need at least two masses. The resulting force ##F## between two masses ##m_1## and ##m_2##, separated by a distance ##r## is:
$$F = \frac{Gm_1m_2}{r^2}$$
Where ##G## is the
gravitational constant and is equal to 6.674×10
−11 N⋅m
2/kg
2. Since the force is applied to both ("
for every action, there is an equal and opposite reaction"), we get this:
They don't combine, as each mass doesn't have a "gravity" by itself, but the gravity force shared by them is influenced by both masses.You should now understand that they don't.Let's find the acceleration of both masses with what we know.
If we have a 100 g (0.1 kg) apple, with a radius of 5 cm (0.05 m) at a 1m distance from the Earth whose mass is 5.9722 X 10
24 kg and radius is 6371 km (6371000 m), the acceleration ##a_2## of the apple ##m_2## can be found with:
$$a_2 = \frac{F_2}{m_2} = \frac{G\frac{m_1m_2}{r^2}}{m_2}= \frac{G}{r^2}m_1$$
Similarly, the acceleration ##a_1## of the Earth ##m_1## will be:
$$a_1 = \frac{F_1}{m_1} = \frac{G\frac{m_1m_2}{r^2}}{m_1}= \frac{G}{r^2}m_2$$
The distance ##r## is the distance center-to-center between the two masses:
$$r = 6371000 + 1 + 0.05 = 6371001.05\text{ m}$$
Thus:
$$a_2 = \frac{6.674 \times 10^{−11}}{6371001.05^2} \times 5.9722 X 10^{24} = 9.8\text{ m/s²}$$
Which is close to the standard acceleration due to gravity on Earth, ##g## (
more on this here). And the Earth's acceleration is:
$$a_2 = \frac{6.674 \times 10^{−11}}{6371001.05^2} \times 0.1 = 1.6 × 10^{-25}\text{ m/s²} \approx 0\text{ m/s²}$$
You can try with other objects which are heavier and/or at larger distances and you will see that those numbers will not vary much unless the masses are comparable to the Earth's mass or the distance between them is comparable to the Earth's radius. (For example, other planets.)
Also, if the distance between the two is 0, then the acceleration of both is also 0 since they are just stuck together, pressing against one another (because the gravitational force is still present).