The answer depends on the fact that cars and the tram go on the same green light. In this situation the tram has priority over vehicles other than trams no matter which way it is going, so even though you are going straight, you give way to the turning tram. The oncoming car has its left turn signal on: when turning left on a green light, it must give way to oncoming traffic going straight, that is, to you. So you need to give way only to the tram, and the car will wait for you