Context Word: party. 
Question: PersonX invited PersonY to their housewarming party, and _ accepted the gift that she brought to it. 
Answer: PersonX
PersonX invited PersonY to their housewarming party, and _ gave her the gift that she brought to it.