The graph shows the distance y, in miles, of a moving train from a station over a certain period of time, x, in hours:

A graph titled Distance Vs Time is shown with Time in hours labeled on x-axis and Distance from Station in miles labeled on y-axis. The scale on the x-axis shows the numbers 1, 2, 3, 4, 5, 6, 7, and the scale on the y-axis shows the numbers 0, 40, 80, 120, 160, 200, 240, 280, 320. The graph shows a straight line joining the ordered pairs 0, 80, and 1, 120, and 2, 160, and 3, 200, and 4, 240.
What is the speed (in miles per hour) of the train and why? (1 point)

80 miles per hour, because speed is the initial value of the function

120 miles per hour, because speed is the distance traveled in unit time

240 miles per hour, because speed is the distance traveled in a certain time

40 miles per hour, because speed is the rate of change of distance

120 miles per hour, because speed is calculated as the distance traveled divided by the time taken to travel that distance. In this case, the train travels 120 miles in 1 hour, so the speed is 120 miles per hour.