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 a tram and other vehicles go, the tram goes first whatever its direction. But if the tram is moving on an extra-section arrow lit at the same time as the red or yellow light, it must give way to vehicles 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 a traffic light, the order is set by its signals, not by priority signs