FR 6723 then BA 7239 at Madrid
Marrakesh → Madrid → Tenerife South
Timetable, Madrid time
22:45FR 6723 from Marrakesh at the gate
12:00BA 7239 to Tenerife South leaves the gatealso AA 8822
13 h 15 apart on the timetable, overnight
BA 7239 leaves 13 h 15 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.