UX 56 then FR 7157 at Madrid
Tocumen → Madrid → Dublin
Timetable, Madrid time
13:05UX 56 from Tocumen at the gatealso MU 4993, EY 7511, HU 8226
07:50FR 7157 to Dublin leaves the gate
18 h 45 apart on the timetable, overnight
FR 7157 leaves 18 h 45 after UX 56 arrives on the timetable: more than half a day, so not a connection we count.