A soldier shaking hands with a woman.
A woman is greeting a soldier.
A woman is greeting a soldier, and a soldier is shaking hands with a woman, which means that shaking hands is a way of greeting someone.
(-x)
(-x)