- In the first part, train travels at a speed of 30 km/h for distance of 15km.
$\text{Speed}=\frac{\text{Distance}}{\text{Time}}$
$\text{Time}=\frac{\text{Distance}}{\text{Speed}}$
$\text{t}_1=\frac{15}{30}=\frac{1}{2}\text{h}$
- In the second part, train travels at a speed of 50km/h for a distance of 75km.
$\text{t}_2=\frac{75}{50}=\frac{3}{2}\text{h}$
- In the third part, train travels at a speed of 20km/h for a distance of 10km.
$\text{t}_3=\frac{10}{20}=\frac{1}{2}\text{h}$
Total distance covered = 15 + 75 + 10 = 100km
Average speed $=\frac{\text{Total distance covered}}{\text{Total time taken}}$
$=\frac{100}{\frac{5}{2}}=40\text{km/h}$