Context Word: migraine. 
Question: PersonX had a terrible migraine headache and PersonY offered advice because _  never had a migraine before. 
Answer: PersonX
PersonX had a terrible migraine headache and PersonY offered advice because _  had had a migraine before.