contestada

Which pronoun correctly finished the sentence:
Both Sarah and Jennifer had to finish (her/their) homework before they could go to the party.