If you shake hands, you can shake them twice.
However, without me, you must have two people at the same time.
So it was repeated 1 time.
Then there is
3×2÷2=3 times
The combination method is
C (3,2) = 3× 2 ÷ 2 = 3 times