The figure shows x-t graphs of two cars A and B. The velocity of car A with respect to car B will be
-2.5 m/s
The slope of graph determines the velocity of car A and B.
Velocity of car A, VA = (15−0)(6−0) = 2.5ms
Velocity of car B,VB = (15−0)(6−3)=5ms
Velocity of Car A with respect to B, VAB = VA−VB
VAB = 2.5 -5 = -2.5ms.