Context Word: keep bananas from discoloring. 
Question: PersonX showed PersonY how to keep bananas from discoloring because _ as a cook worked in a restaurant. 
Answer: PersonX
PersonX showed PersonY how to keep bananas from discoloring because _ as a server worked in a restaurant.