Here the two paths look like:-
What is important is where p is in relation to k. There are two sub cases.