1. Only the tram operators.The car is also on the main road, to your right. Between drivers on a main road that changes direction, the rule to give way to traffic on your right applies, so you have to give way to it as well as to tram B. Tram A, on the other hand, has to give way to you: it's on the side road
3. No one.You're on the main road, but not alone: tram B and the car are on it too, approaching from the right. Since the main road changes direction, the rule to give way to traffic on your right applies between you, and you're the one who has to give way
4. Everyone.Tram A is approaching on the side road, and you're on the main road. A driver on a side road gives way to everyone on the main road, tram or not, so tram A waits for you