The light from the Andromeda Galaxy, also known as M31, has been traveling towards us at the speed of light. The speed of light is a fundamental constant of nature and remains constant regardless of the motion of the source or the observer.
However, it's important to note that the Andromeda Galaxy is not stationary in space. It is actually approaching the Milky Way, our galaxy, due to the mutual gravitational attraction between the two galaxies. The current estimate is that the Andromeda Galaxy is moving towards us at a velocity of about 110 kilometers per second (68 miles per second).
Therefore, when we observe the light from the Andromeda Galaxy, we are seeing it as it was when the light left Andromeda, which is approximately 2.537 million years ago. The light has been traveling through space for that duration, and during that time, both our galaxy and the Andromeda Galaxy have been moving relative to each other.