FR 3877 then AV 2498 at Madrid
Tangier → Madrid → Lisbon
Timetable, Madrid time
22:35FR 3877 from Tangier at the gate
21:10AV 2498 to Lisbon leaves the gatealso LO 4729, AD 7287, S4 8697
22 h 35 apart on the timetable, overnight
AV 2498 leaves 22 h 35 after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.