In this situation the road must be given way by

Explicación
The tram is moving under a supplementary green arrow while the main signal remains red, which makes its permission conditional rather than preferential. It must allow traffic admitted from another direction to pass, so applying the tram's usual advantage without this signal exception would reverse the required order.