Answer:
B) Shepherds herd sheep, and goatherds herd goats.
Step-by-step explanation:
A compound sentence is formed when you join two or more separate sentences with a conjunction.
In A, you can not just divide the sentence in many more meaningful sentences just by removing the conjunction.
But in B, you can (Shepherds herd sheep. Goatherds herd goats.)
And hence, we can say that B is a compound sentence.