The correct answer is:
Product of their masses
In fact, the gravitational pull between two objects is given by:

where
G is the gravitational constant
m1 and m2 are the masses of the two objects
r is the distance between the centres of the two objects
From the equation, we immediately see that the gravitational attraction is directly proportional to the product of the masses.