Tom, Dick and Harry started out an a 100 km journey. Tom and Harry went by automobile at the rate of 25 km/hr, while Dick walked at the rate of 5 km/hr. After a certain distance, Harry got off and walked on at 5 km/hr, while tom went back for Dick and got him to the destination at the same time that Harry arrived. The number of hours required for the trip was: