FR 2064 then IB 1857 at Madrid
Palma de Mallorca → Madrid → Marrakesh
Timetable, Madrid time
23:00FR 2064 from Palma de Mallorca at the gate
19:30IB 1857 to Marrakesh leaves the gatealso VY 5477, BA 7165
20 h 30 apart on the timetable, overnight
IB 1857 leaves 20 h 30 after FR 2064 arrives on the timetable: more than half a day, so not a connection we count.