3O 391 then QR 5513 at Madrid
Tangier → Madrid → Firenze
Timetable, Madrid time
16:403O 391 from Tangier at the gate
14:35QR 5513 to Firenze leaves the gatealso IB 5787, VY 6037, AA 8869
21 h 55 apart on the timetable, overnight
QR 5513 leaves 21 h 55 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.