The main road decides first: the red and blue cars are on it, while the yellow and green cars are approaching from side roads and give way to both. The blue and red cars are coming toward each other: the blue car is turning left and gives way to the red one, which is turning 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 car second. The yellow and green cars on the side roads sort it out between themselves as on roads of equal priority. They are also coming toward each other: the green car is turning left and the yellow car is going straight, so the green car gives way to the yellow one. The yellow car goes third, and the green car last