Context Word: house. 
Question: PersonX was a family oriented person and needed a house unlike PersonY, so _ sold their apartment. 
Answer: PersonX
PersonX was a family oriented person and needed a house unlike PersonY, so _ rented their apartment.