AA 8731 then EY 4310 at Madrid
Rome → Madrid → Palma de Mallorca
Timetable, Madrid time
21:35AA 8731 from Rome at the gate
20:15EY 4310 to Palma de Mallorca leaves the gatealso UX 6051, AM 6872, AD 6960
22 h 40 apart on the timetable, overnight
EY 4310 leaves 22 h 40 after AA 8731 arrives on the timetable: more than half a day, so not a connection we count.