Consider the following situation.
The car appears to be in motion with respect to
Both A and B
If we see the position of the car after sometime, it will be as shown below:
As the position of the car has changed with respect to both A and B, the car appears to be in motion with respect to both A and B.