FR 6712 then VY 5222 at Madrid
Budapest → Madrid → Palma de Mallorca
Timetable, Madrid time
18:10FR 6712 from Budapest at the gate
13:45VY 5222 to Palma de Mallorca leaves the gate
19 h 35 apart on the timetable, overnight
VY 5222 leaves 19 h 35 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.