Answer:
C. She had helped the two spies.
Joshua 2:9–13, King James Version. After escaping, the spies promised to spare Rahab and her family after taking the city, even if there should be a massacre, if she would mark her house by hanging a red cord out the window.