Context Word: gum. 
Question: PersonX knew exactly how to get gum out of their hair unlike PersonY because _ knew the tricks to do it. 
Answer: PersonX
PersonX knew exactly how to get gum out of their hair unlike PersonY because _ didn't know the tricks to do it.