UX 138 then FR 2017 at Madrid
Quito → Madrid → Lanzarote
Timetable, Madrid time
05:00UX 138 from Quito at the gate
17:35FR 2017 to Lanzarote leaves the gate
12 h 35 apart on the timetable
FR 2017 leaves 12 h 35 after UX 138 arrives on the timetable: more than half a day, so not a connection we count.