Velocity of car A, vA=100 km/h
Velocity of car B, vB=80 km/h
Velocity of the stone relative to car B is v. The velocity of the stone relative to the ground is vS=vB+v=80+v.
The velocity of the stone relative to car A is vS/A=vS−vA=(80+v)−100=v−20.
The stone hits car A with a relative speed of 5 m/s. Converting this speed to km/h:
vS/A=5×518=18 km/h
Equating the relative speeds:
v−20=18⇒v=38 km/h
Answer: 38