The main road decides first: the red and blue cars are on it, while the yellow and green cars come from side roads and give way to both. The blue and red cars are coming toward each other: the blue car turns left and gives way to the red one, which turns right, because a driver turning left gives way to oncoming traffic going straight or turning right. So the red car goes first and the blue one second. Between themselves, the yellow and green cars on the side roads go as at an intersection of roads of equal priority. They are oncoming too: the green car turns left and the yellow one goes straight, so the green car gives way to the yellow one. The yellow car goes third, the green one last