Calculates the intersection of the blue and red lines

back