Context Word: distractions. 
Question: PersonX struggled with distractions during the class that PersonY taught, because _ had trouble paying attention. 
Answer: PersonX
PersonX struggled with distractions during the class that PersonY taught, because _ had trouble keeping everyone's attention.