FR 6723 then AA 8594 at Madrid
Marrakesh → Madrid → Palma de Mallorca
Timetable, Madrid time
22:45FR 6723 from Marrakesh at the gate
16:50AA 8594 to Palma de Mallorca leaves the gate
18 h 05 apart on the timetable, overnight
AA 8594 leaves 18 h 05 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.