A woman in a blue top and pencil skirt walks by a balding man in a pinstriped suit.
They pass eachother.
They means a woman and a balding man.  Walks by implies they pass each other.
If the woman walks by a man then they pass each other
If a person walks by another one, they pass each other.