Which two duties coexist if menstruation ends at noon?

Kitab al-Sawm: Unconsciousness, Recovery, Menstruation and Abstention