UX 5042 then IB 1043 at Madrid
Málaga → Madrid → Mahón
Timetable, Madrid time
09:50UX 5042 from Málaga at the gate
07:10IB 1043 to Mahón leaves the gate
21 h 20 apart on the timetable, overnight
IB 1043 leaves 21 h 20 after UX 5042 arrives on the timetable: more than half a day, so not a connection we count.