Acceleration of the train = a
The engine exerts a force of 40000 N on all the five wagons.
Net accelerating force on the wagons, Fa = 35000 N
Mass of the wagons, m = Mass of a wagon × Number of wagons
Mass of a wagon = 2000 kg
Number of wagons = 5
∴ m = 2000×5 = 10000 kg
Total mass, M = m = 10000 kg
From Newton's second law of motion:
Fa = Ma
a=FM=3500010000=3.5 ms−2
Hence, the acceleration of the wagons and the train is 3.5 ms−2.