A man travelled by car from city A to city B at a speed of 24 km/h and returned from city B to city A at 16 km/h. Find his average speed over the whole journey