Similarly to how you did it but remember that i is a constant value not a variable. Try seeing it as (x + (i - 2)) instead of ((x + i) - 2).
And read the question properly. He wants the quadratic solving against a line (specifically the x values of the two intersections). Do your multiplying out and get everything on one side, then set that equal to the equation for the line (given later in the question). Rearrange, multiply, add, whatever to get it as a quadratic so you can then use the quadratic formula.