3O 377 then VY 1008 at Barcelona
Tangier → Barcelona → Madrid
Timetable, Barcelona time
18:553O 377 from Tangier at the gate
17:30VY 1008 to Madrid leaves the gatealso QR 5529, IB 5992, LL 5992
22 h 35 apart on the timetable, overnight
VY 1008 leaves 22 h 35 after 3O 377 arrives on the timetable: more than half a day, so not a connection we count.