We will have the following:
First, we remember:

Then, from the problem we will have that:


So, the Andromeda galaxy is approximately 1.1*10^20 meters from the milky way.
The acceleration of the Andromeda galaxy towards the milky way is:

So, the acceleration towards the milky ways is 1.2m/s^2.