FR 2540 then AV 2490 at Madrid
Bucharest → Madrid → Lisbon
Timetable, Madrid time
13:55FR 2540 from Bucharest at the gate
12:10AV 2490 to Lisbon leaves the gatealso UA 6875, AD 7271, S4 8699
22 h 15 apart on the timetable, overnight
AV 2490 leaves 22 h 15 after FR 2540 arrives on the timetable: more than half a day, so not a connection we count.