The graph of speed against time for a train leaving a station is a straight line from 0m/s at 0s to 9.0m/s at 6.0s. The speed then stays at 9.0m/s until 14s. It then falls in a straight line to 0m/s at 18s. What distance does the train travel in the 18s?