AA 8762 then IB 2292 at Madrid
Valencia → Madrid → Melilla
Timetable, Madrid time
08:05AA 8762 from Valencia at the gate
07:40IB 2292 to Melilla leaves the gatealso VY 5692, QR 8045
23 h 35 apart on the timetable, overnight
IB 2292 leaves 23 h 35 after AA 8762 arrives on the timetable: more than half a day, so not a connection we count.