UX 6078 then FR 5997 at Madrid
Palma de Mallorca → Madrid → London Stansted
Timetable, Madrid time
20:45UX 6078 from Palma de Mallorca at the gate
18:55FR 5997 to London Stansted leaves the gate
22 h 10 apart on the timetable, overnight
FR 5997 leaves 22 h 10 after UX 6078 arrives on the timetable: more than half a day, so not a connection we count.