A car covers ha;f of the total distance with speed of 20 kmph and the rest with a speed of 40 kmph.the average speed during journey is(in Kmph)?plz explain it briefly with calculations?