find the total distance covered by the bird till the cars meet.