UX 158 then FR 2051 at Madrid
Johannesburg → Madrid → Palma de Mallorca
Timetable, Madrid time
05:05UX 158 from Johannesburg at the gate
17:25FR 2051 to Palma de Mallorca leaves the gate
12 h 20 apart on the timetable
FR 2051 leaves 12 h 20 after UX 158 arrives on the timetable: more than half a day, so not a connection we count.