Context Word: listening. 
Question: PersonX thought it looked like PersonY wasn't listening to him at all, so _ clapped loudly. 
Answer: PersonX
PersonX thought it looked like PersonY wasn't listening to him at all, because _ was staring outside.