Context Word: entering. 
Question: PersonX wanted to keep PersonY from entering the house, but _ got to the door after her. 
Answer: PersonX
PersonX wanted to keep PersonY from entering the house, but _ got to the door before her.