Answer:
Acceleration is 2.5 m/s^2
Step-by-step explanation:
Let train 1 travel x meters and train 2 travels 1000-x meters
As per the las of acceleration

Substituting the given values, we get -
---Eq (1)
Similarly
-- Eq (2)
Substituting the value of ax from eq (1) into Eq(2), we get -
1000*a - 1250 = 1250
a = 2500/1000 = 2.5 m/s^2