FR 2776 then KM 587 at Madrid
Palma de Mallorca → Madrid → Valletta
Timetable, Madrid time
00:50FR 2776 from Palma de Mallorca at the gate
21:30KM 587 to Valletta leaves the gate
20 h 40 apart on the timetable
KM 587 leaves 20 h 40 after FR 2776 arrives on the timetable: more than half a day, so not a connection we count.