UX 56 then KL 3324 at Madrid
Tocumen → Madrid → Lanzarote
Timetable, Madrid time
13:05UX 56 from Tocumen at the gatealso MU 4993, EY 7511, HU 8226
06:45KL 3324 to Lanzarote leaves the gatealso AF 4832, DL 6772, AM 6836, EY 7581, UX 9073
17 h 40 apart on the timetable, overnight
KL 3324 leaves 17 h 40 after UX 56 arrives on the timetable: more than half a day, so not a connection we count.