FR 2514 then AV 6506 at Madrid
Bucharest → Madrid → Munich
Timetable, Madrid time
00:25FR 2514 from Bucharest at the gate
18:35AV 6506 to Munich leaves the gate
18 h 10 apart on the timetable
AV 6506 leaves 18 h 10 after FR 2514 arrives on the timetable: more than half a day, so not a connection we count.