FR 2016 then FR 5997 at Madrid
Lanzarote → Madrid → London Stansted
Timetable, Madrid time
20:15FR 2016 from Lanzarote at the gate
18:55FR 5997 to London Stansted leaves the gate
22 h 40 apart on the timetable, overnight
FR 5997 leaves 22 h 40 after FR 2016 arrives on the timetable: more than half a day, so not a connection we count.