The driver of a car moving with uniform speed of 40ms-1 observes a truck approaching…