FR 2972 then FR 5151 at Dublin
Kaunas → Dublin → Glasgow
Timetable, Dublin time
23:10FR 2972 from Kaunas at the gate
21:15FR 5151 to Glasgow leaves the gate
22 h 05 apart on the timetable, overnight
FR 5151 leaves 22 h 05 after FR 2972 arrives on the timetable: more than half a day, so not a connection we count.