AA 8710 then FR 2051 at Madrid
Marrakesh → Madrid → Palma de Mallorca
Timetable, Madrid time
16:40AA 8710 from Marrakesh at the gate
07:50FR 2051 to Palma de Mallorca leaves the gate
15 h 10 apart on the timetable, overnight
FR 2051 leaves 15 h 10 after AA 8710 arrives on the timetable: more than half a day, so not a connection we count.