Answer:
The average speed is 20 m/s
Explanation:
To calculate this we need to divide the distance in meters (2km + 2km = 2000m + 2000m = 4000 m ) times the speed (in seconds) the train was traveling
using x = t * v we can calculate the time for each part
2000m = t₁ * 15 m/s
2000m / 15 m/s = 133.33333333... s = t₁
2000m = t₂ * 30m/s
2000m / 30 m/s = 66.6666666... s = t₂
then
[tex]\frac{2000m+2000m}{66.666666s+133.33333s} = \frac{4000m}{200s} =20m/s[/tex]