Two cars A and B are travelling in opposite directions at 30 m/s each