Sorry in advance i dont know latex :(
First we pick who will go through the manual gate, i.e 3C1=3. We then pick which of the two manual gates they will go through, i.e. 3*2
Then, we arrange the 2 others in the 3 different gates, i.e. 3!
Thus the final answer is 3*2*3!=36