A car covers the first half distance between two places at 40 km/h another half at 60 km/h, the average speed of car

(A) 40 km/h
(B) 48 km/h
(C) 50 km/h
(D) 60 km/h