Context Word: bedroom. 
Question: When they arrived, PersonX managed to stay up and get work done while PersonY slept in the bedroom because _ was motivated. 
Answer: PersonX
When they arrived, PersonX managed to stay up and get work done while PersonY slept in the bedroom because _ was tired.