H2 5166 then JA 6027 at Lima
Arequipa → Lima → Cusco
Timetable, Lima time
23:10H2 5166 from Arequipa at the gate
17:30JA 6027 to Cusco leaves the gate
18 h 20 apart on the timetable, overnight
JA 6027 leaves 18 h 20 after H2 5166 arrives on the timetable: more than half a day, so not a connection we count.