Answer:
40
Step-by-step explanation:
Remark
This is just an ordinary Pythagorean Problem.
a = 32
b = 24
c = ?
Distance
a^2 + b^2 = c^2
32^2 + 24^2 = c^2
1024 + 576 = c^2
c^2 = 1600
√c^2 = √1600
c = 40
c = 40 The distance the trains are apart is 40 km