Relating to motion of objects

Relating to motion of objects

Two cars And B of length 100meter and 200m start to move from the same point A)How much time car A needs to cross car B. B) when they will move in the same direction. ? C) when they move toward each other ?