3O 391 then VY 5243 at Madrid
Tangier → Madrid → Palma de Mallorca
Timetable, Madrid time
20:003O 391 from Tangier at the gate
17:20VY 5243 to Palma de Mallorca leaves the gate
21 h 20 apart on the timetable, overnight
VY 5243 leaves 21 h 20 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.