Given data:
The given speed of the train is s=40 miles/hour.
the given time is t=8 hours.
The expression for the distance is,
d=sxt
Substitute the given values in the above expression.
d=(40 miles/hour)(8 hours)
=320 miles
Thus, the distance travelled is 320 miles.