The correct response is: Astronomers have observed their movements over time.
By tracking the positions and velocities of the Milky Way and Andromeda galaxies, astronomers have been able to calculate their trajectories, which indicate that they are on a collision course and will eventually merge.