<span>The force of gravity = GMm / r^2, where G is gravitational constant, M is mass of one object, m is mass of another object, r is distance between them.
So, mass of objects affect gravity as well as the distance between the two objects.</span>
Distance and mass affect gravity. If an object has a greater mass, it's gravitational pull will be stronger. And if an object is further away from the one that is exhorting the gravitational pull, then the gravitational pull on the object will be weaker than on closer objects.
<span>it takes about about 37,200 years for light to travel 1 light year. So the answer would have to be false. It would take way longer than 300k years