The order is set by the priority signs: blue and red are on the main road, while yellow and green approach with the sign
and give way to everyone on the main road, wherever they are going. On the main road, red is turning right and the oncoming blue car is turning left, so blue gives way to red: red goes first and blue second. Then the cars on the side road sort things out between themselves: green is turning left and must give way to the oncoming yellow car, which is going straight. So yellow goes third and green goes last