Context Word: attitude. 
Question: PersonX had a more positive attitude about the future than PersonY because _ was an optimist. 
Answer: PersonX
PersonX had a more positive attitude about the future than PersonY because _ was a pessimist.