The average speed is the ratio between the distance covered, and the time elapsed to cover that distance.
The total distance is the sum of the three distances covered:

Similarly, the total time elapsed is

So, althought you didn't always travelled with the same speed, you globally covered 170km in 1.75 hours. This leads to an average speed of
