The answer depends on the traffic light: the main signal is red, and the tram is turning right on a green arrow lit in the extra arrow section. Normally, when the signal lets both the tram and other vehicles go, the tram goes first whatever its direction. But if the tram is moving on an arrow in the extra section that is lit together with red or yellow, it must give way to traffic approaching from other directions. The car is approaching from the left, from another direction, so the tram gives way to it. The
sign under the traffic light changes nothing here: at an intersection with traffic lights, the order is decided by the light's signals, not by priority signs