2C1*(3C1)^(2)*3 = 54
When Toyota goes through the gate, they have 2 choices[Either manual gate](2C1), the other cars have 3 choices[Either automatic gates](3C1) and since two cars, it must be squared i.e. (3C1)^2
Since for all three cases, it is the same, just multiply by 3