FR 338 then FR 5772 at Dublin
London Luton → Dublin → Glasgow
Timetable, Dublin time
18:20FR 338 from London Luton at the gate
12:35FR 5772 to Glasgow leaves the gate
18 h 15 apart on the timetable, overnight
FR 5772 leaves 18 h 15 after FR 338 arrives on the timetable: more than half a day, so not a connection we count.