The answer depends on the fact that the intersection is uncontrolled and has no priority signs, so the roads are of equal priority. At such an intersection a tram has priority over other vehicles no matter which side it comes from or which way it is going. The rule “give way to traffic on your right” applies here only between vehicles other than trams and between trams themselves; it does not release a vehicle from giving way to a tram. So before crossing the tracks, you give way to both tram A on the left and tram B on the right