The answer turns on the fact that you are driving a car, while A and B are trams. There are no priority signs or traffic lights for your direction, so this is an intersection of roads of equal priority. At such an intersection a tram has priority over other vehicles regardless of the direction it is traveling. 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 a tram and another vehicle. So you give way both to tram A, which is coming toward you, and to tram B, which is approaching from the left