Trams 1 and 2, the car 3, the car 1, the car 2.
Tram 1, the car 1, the car 2, after change of a signal of a traffic light - a tram 2, the car 3.