The correct response is:
Astronomers have observed their movements over time.
Astronomers use various methods, including measuring the velocities and trajectories of galaxies using redshift and other observations, to predict future interactions, such as the collision between the Milky Way and the Andromeda galaxy.