Which statement correctly describes the factors affecting gravitational force between two objects?

Gravitational force between two objects is determined by their masses and the distance between their outermost edges.
Gravitational force between two objects is determined by their masses and the distance between their centers.
Gravitational force between two objects is determined by their volumes and their acceleration relative to the Sun.
Gravitational force between two objects is determined by their diameters and their distance from the Sun.

Gravitational force between two objects is determined by their masses and the distance between their centers.