FR 7156 then FR 2775 at Madrid
Dublin → Madrid → Palma de Mallorca
Timetable, Madrid time
23:45FR 7156 from Dublin at the gate
12:20FR 2775 to Palma de Mallorca leaves the gate
12 h 35 apart on the timetable, overnight
FR 2775 leaves 12 h 35 after FR 7156 arrives on the timetable: more than half a day, so not a connection we count.