FR 2776 then LO 2162 at Madrid
Palma de Mallorca → Madrid → Krakow
Timetable, Madrid time
00:50FR 2776 from Palma de Mallorca at the gate
20:00LO 2162 to Krakow leaves the gate
19 h 10 apart on the timetable
LO 2162 leaves 19 h 10 after FR 2776 arrives on the timetable: more than half a day, so not a connection we count.