2W 3504 then FR 404 at Madrid
Punta Cana → Madrid → Palma de Mallorca
Timetable, Madrid time
10:052W 3504 from Punta Cana at the gate
07:55FR 404 to Palma de Mallorca leaves the gate
21 h 50 apart on the timetable, overnight
FR 404 leaves 21 h 50 after 2W 3504 arrives on the timetable: more than half a day, so not a connection we count.