Two black and white dogs walking on dirt, one of which has a ball in its mouth.
Two black and white dogs are walking with one having a ball in its mouth.
With one having is a rephrasing of one of which has.
(-x)
(-x)