Context Word: fabric. 
Question: PersonX sewed the fabric to make a costume for PersonY, so _ got a nice payday out of the deal. 
Answer: PersonX
PersonX sewed the fabric to make a costume for PersonY, so _ got a nice outfit out of the deal.