A motorcyclist drives from A to B with a uniform speed of 30 km h−1 and returns with a speed of 20 km h−1. Find the average speed.