What decides the answer is the signal the tram is going on. Normally, when the traffic light lets a tram and a car go at the same time, the tram has priority. But the tram's light shows red, and it is turning on the green arrow in the extra arrow section. Anyone going on such an arrow while the light is red or yellow must give way to traffic coming from other directions. The car is going on the main green, so the tram gives way to it