AA 8675 then I2 1697 at Madrid
Cairo → Madrid → Ibiza
Timetable, Madrid time
03:20AA 8675 from Cairo at the gate
12:45I2 1697 to Ibiza leaves the gatealso IB 1697
9 h 25 apart on the timetable
The last days
AA 8675 and I2 1697 weren’t both flown 15 min to 12 h apart in the last 21 days.
Statistics from past flights, not live flight information. Always check times and your connection with your airline, and don’t base travel or booking decisions on these numbers.