W6 2391 then FR 404 at Madrid
Budapest → Madrid → Palma de Mallorca
Timetable, Madrid time
08:45W6 2391 from Budapest at the gate
21:05FR 404 to Palma de Mallorca leaves the gate
12 h 20 apart on the timetable
FR 404 leaves 12 h 20 after W6 2391 arrives on the timetable: more than half a day, so not a connection we count.