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