The pronoun should match the noun it is replacing. For example, if you are talking about a plural noun that is having the action done to it, use them: Guards saw the travellers coming, and greeted them.