In a 40 km race, the winner took 5 hours to finish the race. What was the average speed of the winner?