Context Word: letter. 
Question: PersonX wrote a letter to the judge explaining the actions of PersonY because _ was a good friend. 
Answer: PersonX
PersonX wrote a letter to the judge explaining the actions of PersonY because _ was an accused criminal.