Context Word: relationship. 
Question: PersonX got along with their boss but PersonY did not because _ had a good relationship with them. 
Answer: PersonX
PersonX got along with their boss but PersonY did not because _ had a poor relationship with them.