Context Word: cheaper. 
Question: PersonX bought cheaper groceries than PersonY did because _ had a worse job and pay. 
Answer: PersonX
PersonX bought cheaper groceries than PersonY did because _ had a better job and pay.