Two cars A and B are moving west to east and south to north