IB 306 then IB 2296 at Madrid
Monterrey → Madrid → Melilla
Timetable, Madrid time
13:50IB 306 from Monterrey at the gatealso BA 7180
12:35IB 2296 to Melilla leaves the gatealso VY 5696
22 h 45 apart on the timetable, overnight
IB 2296 leaves 22 h 45 after IB 306 arrives on the timetable: more than half a day, so not a connection we count.