Context Word: nice. 
Question: PersonX was nice and PersonY was mean, which explains why _ had all the good friends. 
Answer: PersonX
PersonX was nice and PersonY was mean, which explains why _ had all the contrary friends.