Here we can say that the momentum of the system will remain conserved
As here we can see that there is no external force in horizontal direction
so here we can say that
As the person in front throw the ball towards back the canoe will start moving forward direction so that momentum of the system will remain conserved
now after this we can say momentum of ball + canoe + two friends = 0 always
now when the person at the back of the canoe will catch the ball then again due to the concept of momentum conservation we can say that the whole system will again comes to rest
so the canoe will become at rest after the person at the back will catch the ball