Context Word: photograph. 
Question: PersonX did not buy the photograph from the photographer, but PersonY did because _ thought they looked ugly. 
Answer: PersonX
PersonX did not buy the photograph from the photographer, but PersonY did because _ thought they looked beautiful.