The sentence that has correct pronoun and antecedent agreement is:
While the neighbors were walking to the store, they dropped their money and the wind blew it away.
In this sentence, "they" correctly refers to "the neighbors," maintaining agreement in number and gender.