Consider this illustration depicting gravitational attraction. You could say it is analogous to the sun and three planets.

The spheres A-C are attracted to D because
D is closest to all three bodies
D is the most massive of the four bodies
D is the only body that is not moving in orbit
Of D’s position with regard to the other three bodies

D is closest to all three bodies.