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