A train travels from calcutta to burdwan at the rate of 50 km per hour and returns from burdwan to calcutta at the rate of 40 km per hour.find the average for the whole distance