Context Word: test. 
Question: So _ was worried because PersonX forgot to study for the upcoming test and PersonY studied. 
Answer: PersonX
So _ was confident because PersonX forgot to study for the upcoming test and PersonY studied.