An alternative way of finding the distance travelled is simply to calculate the area under the line:

In this case: distance = 30 × 20 = 600 m. Which is precisely the same calculation as before!