The correct response is: Astronomers have observed their movements over time.
Astronomers use various observational data, such as redshift measurements and proper motion, to track the velocities and trajectories of galaxies over time, allowing them to predict future interactions, including the eventual collision of the Milky Way with the Andromeda Galaxy.