Context Word: smile. 
Question: PersonX was trying to get PersonY to smile because _ knew what it was like to have a bad day. 
Answer: PersonX
PersonX was trying to get PersonY to smile but _ knew what it was like to have a bad day.