Velocity of cars = 25 m/s
Distance the car has to cover for passing truck = 40m
Distance of passing spot from the car coming from opposite direction = 400- 40 =360 m
Time available for the car to pass truck of 20 m length = Distance of passing spot from the car coming from opposite direction/relative velocity between cars
Time = 360/50 = 7.2 seconds
Suppose the truck is moving at the same speed of car.
Distance traveled by car compared to truck is given by the expression
S = ut + [tex]\frac{1}{2} at^2[/tex], where S is the distance traveled, u is the initial velocity a is the acceleration and t is the ime taken.
In this case u = 0, t = 7.2 s, a = 1 m/[tex]s^2[/tex]
So distance traveled by car in 7.2s compared to truck = 0*7.2+[tex]\frac{1}{2} *1*7.2^2[/tex]
So, S = 0+ 25.92 = 25.92 m
So car will travel only travel 25.92 m
In order to overtake it needs to travel 40m. So don't attempt to pass the truck.