UX 9078 then FR 3876 at Madrid
Lanzarote → Madrid → Tangier
Timetable, Madrid time
12:55UX 9078 from Lanzarote at the gate
06:10FR 3876 to Tangier leaves the gate
17 h 15 apart on the timetable, overnight
FR 3876 leaves 17 h 15 after UX 9078 arrives on the timetable: more than half a day, so not a connection we count.