A woman and her son walk down a long, leaf-strewn path, while two people ride their horses in the opposite direction.
The woman and her son passed by two people on horses
To "walk in the opposite direction" is a rephrasing of "passed by," and if you are to ride horses you must be on horses.
(-x)
(-x)