Makes no difference whether the foul is declined or not, the result is a safety.
An IFP is a running play, not a incomplete pass play. Since the run ended in the end zone where the ball became dead, the result of the play is a safety.
You got the question wrong.