I found this on Quora. They said
“To get time just divide the distance traveled by its speed.
t1= distance/speed1 and t2 = distance / speed2
t1= 600km / 50 km/h and t2 = 600 km / 60 km/h
t1= 12 hours and t2 takes 10 hours
The body traveling at 50 km/h would take 2 hours more than the body traveling at 60 km/h.”