FR 5685 then I2 1661 at Madrid
Edinburgh → Madrid → Palma de Mallorca
Timetable, Madrid time
18:05FR 5685 from Edinburgh at the gate
10:15I2 1661 to Palma de Mallorca leaves the gatealso IB 1661, VY 5183
16 h 10 apart on the timetable, overnight
I2 1661 leaves 16 h 10 after FR 5685 arrives on the timetable: more than half a day, so not a connection we count.