A car travels from A and B at a speed of 20km/hr and returns at a speed of 30km/hr. The average speed of the car for the whole journey is