JA 8751 then JA 7029 at Lima
Medellín → Lima → Cusco
Timetable, Lima time
13:50JA 8751 from Medellín at the gate
08:00JA 7029 to Cusco leaves the gate
18 h 10 apart on the timetable, overnight
JA 7029 leaves 18 h 10 after JA 8751 arrives on the timetable: more than half a day, so not a connection we count.