Points of intersection of a linear and quadratic function