The distance travel in the first ride is:

this means that the time on the first ride is:

Now, if we travel the same distance but with a velocity of 3v the time would be:

This means that the ride home took a third of the original time, therefore the ride homw takes t/3 seconds.