Gravity is an example of the force of attraction between two objects that have mass.
The formula for the force (F) of gravitational attraction is
F =GMm/(d^2)
where
M and m are the masses of the two objects
d is the distance between the two objects
G is a constant called the gravitational constant