The answer depends on the fact that you are in a car, while A and B are trams. There are no priority signs or traffic light for your direction, so this is an intersection of roads of equal priority. At such an intersection a tram has priority over other vehicles, whatever direction it is going. The rule “give way to traffic on your right” does not help here: it works between vehicles other than trams, and separately between trams, but not between such a vehicle and a tram. So you give way both to tram A, coming toward you, and to tram B, approaching from the left