A car covered the first 400 m distance with a speed of 8 m/s, the next 1200 m with a speed 12 m/s and the last 360 m with a speed of 12 m/s. Calculate the average speed of the car.