Mathematics Homework Help

Mathematics Homework Help. Determining all real numbers in a rational equation

Determine all real numbers p and q such that the rational equation (x-p) over x-1 = x-2 over x-q has a solution all real #s except x=1 and x=q, we want to find p and q that make this equation a tautology. 

Given two quadratic polynomials ax^2+bx+c = ax^2+bx+y, only if all coefficients of like terms are equal. i.e a=a b=B and c=y

I have cross multiplied them so far and have x squared -9x -px +9p = x squared -2x -x +2. I need help on where to go from here please

Mathematics Homework Help