during first half of the journey a body travels with speed of 40km/hrs and in next half it travels with speed of 20km/hrs.Calculate the average speed of the whole journey