A taxi traveling from A to B covers the first half of the total distance (to and fro) with a speed of 40 m/s and the second half with a speed of 60 m/s. Find the average speed of the car.