The answer depends on which signal the tram is going on. Normally, on green a tram has the right-of-way over vehicles other than trams, but here its traffic light shows red, and only the arrow in the extra arrow section allows the right turn. Anyone going on such an arrow gives way to vehicles from other directions, and this rule applies to trams too. The car has an ordinary green, so the tram gives way to it, and the car goes through the intersection first