SM 3109 then FR 5315 at Madrid
Cairo → Madrid → Rome
Timetable, Madrid time
11:45SM 3109 from Cairo at the gate
08:55FR 5315 to Rome leaves the gate
21 h 10 apart on the timetable, overnight
FR 5315 leaves 21 h 10 after SM 3109 arrives on the timetable: more than half a day, so not a connection we count.