Context Word: sleeping. 
Question: Because PersonX had trouble sleeping while PersonY went to bed early, _ woke up exhausted. 
Answer: PersonX
Because PersonX had trouble sleeping while PersonY went to bed early, _ woke up refreshed.