mike took a bus from home to market , that travels at 30 kmph . while walking back at 6 kmph , halfway through , he suddenly realized he was getting late and he cycled back the remaining distance in 20 kmph . find the average speed .