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