The sentence with 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, the pronoun "they" correctly refers to the plural antecedent "neighbors," and the pronoun "it" refers correctly to the singular noun "money."
All the other options have issues with pronoun-antecedent agreement.