Context Word: costs. 
Question: PersonX didn't consider the costs when they bought the house from PersonY, so _ was stuck with the money pit. 
Answer: PersonX
PersonX didn't consider the costs when they bought the house from PersonY, so _ was rid of the money pit.