FR 2540 then FR 7157 at Madrid
Bucharest → Madrid → Dublin
Timetable, Madrid time
08:45FR 2540 from Bucharest at the gate
21:15FR 7157 to Dublin leaves the gate
12 h 30 apart on the timetable
FR 7157 leaves 12 h 30 after FR 2540 arrives on the timetable: more than half a day, so not a connection we count.