Array Intersection

this will give you the vertex of first river, vertex of second river,
intersection of both