A car travelled distances of 10 km, 20 km and 30 km at speeds of 30 km/h, 40 km/h and 60 km/h, respectively. The average speed of the car is: