Context Word: beautiful. 
Question: The house PersonX designed for PersonY was beautiful, so _ used it in his portfolio. 
Answer: PersonX
The house designed for PersonX by PersonY was beautiful, so _ used it in his portfolio.