A woman in a long black burqa walks toward a shopping area while a short-haired man with a beard walks beside her.
a woman walks with a bearded man
Sentence 2 follows because if a woman is walking with a man with a beard beside her, she is therefore walking with a bearded man.
(-x)
(-x)