A train travels from A to B with speed 20 km/hrs and from B to A with speed 30 km/hrs. Average sp