Car X traveled 3d distance in t time. Car Y traveled 2d distance in t time. Therefore, the speed of car X, is 3d/t, the speed of car Y, is 2d/t. Since speed is the distance taken in a given time.
In figure-2, they are at the same place, we are asked to find car Y's position when car X is at line-A. We can calculate the time car X needs to travel to there. Let's say that car X reaches line-A in t' time.

Okay, it takes t time for car X to reach line-A. Let's see how far does car Y goes.

We found that car Y travels 2d distance. So, when car X reaches line-A, car Y is just a d distance behind car X.
I'm pretty your it's magnetism though. Like magnets
Answer:
It is wrong to say that "a single object all alone is moving" simply because it goes against Newton's law of inertia.
Explanation:
From Newton's law of inertia, it states that: An object at rest or in constant motion will continue in it's present state unless it is acted upon by an external force.
Which means that a single object by itself cannot move anywhere unless it is acted upon by an external force..
Thus, it is wrong to say that "a single object all alone is moving" simply because it goes against Newton's law of inertia.