3O 391 then UX 9048 at Madrid
Tangier → Madrid → Tenerife North
Timetable, Madrid time
16:253O 391 from Tangier at the gate
15:00UX 9048 to Tenerife North leaves the gate
22 h 35 apart on the timetable, overnight
UX 9048 leaves 22 h 35 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.