Context Word: locksmith. 
Question: PersonX locked themselves out of the house but PersonY was the locksmith, so _  was stuck outside the house. 
Answer: PersonX
PersonX locked themselves out of the house but PersonY was a locksmith, so _  went inside the house.