FR 5998 then FR 5382 at Madrid
London Stansted → Madrid → Valletta
Timetable, Madrid time
20:50FR 5998 from London Stansted at the gate
18:55FR 5382 to Valletta leaves the gate
22 h 05 apart on the timetable, overnight
FR 5382 leaves 22 h 05 after FR 5998 arrives on the timetable: more than half a day, so not a connection we count.