Problems involving distance and time