A point where the parabola meets a line is a point that sits on the parabola and on the line at the same time. At such a point the you get from the parabola and the you get from the line are exactly equal. So to find an intersection we set those two values equal and combine them into a single equation.
Take the line . Setting the values equal gives , and moving everything to one side gives . This factors as , so or . Putting these back into the parabola gives and , so the two intersection points are and .
The key idea is that the number of solutions of the equation is the number of intersection points. Two solutions mean two crossings, one solution means one, and no solution means the graphs never meet. So "how many times do they cross?" becomes "how many solutions does the equation have?"
You can find that count without fully solving, using the discriminant of the quadratic . It is the part under the square root in the quadratic formula, and its sign decides the number of solutions.
If you slide a line of the same slope up and down, these three cases appear in turn: while the line runs deep through the parabola there are two crossings, as it drops the two crossings move closer, at one moment they merge into a single point where the line is tangent, and lower still the line leaves the parabola with no crossing at all.
Three lines of slope are drawn on the graph, each giving with discriminant . For , , so it crosses twice as we saw. For , the equation is , that is , whose only solution is ; the two intersection points have merged into one, and the line is tangent at . For , has , so there is no solution and the line never meets the parabola. The large dots on the graph mark the intersection and tangency points.