since equal distances are covered at 20 kmph and 80 kmph, we can apply the formula 2xy/(x+y)
Ram goes from point A to B by auto at the speed of 20 km/hr and comes back from B to A in a cab at a speed of 80 km/hr. Find his average speed.