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