Intersection of lines and parabolas