AA 8676 then IB 2296 at Madrid
Bilbao → Madrid → Melilla
Timetable, Madrid time
14:45AA 8676 from Bilbao at the gate
12:35IB 2296 to Melilla leaves the gatealso VY 5696
21 h 50 apart on the timetable, overnight
IB 2296 leaves 21 h 50 after AA 8676 arrives on the timetable: more than half a day, so not a connection we count.