If p+q and pq are known then quadratic equation corresponding to roots as p and q is given by,x2−(p+q)x+pq=0
⇒x2−11x−12=0, substitute the given values
⇒x2−12x+x−12=0, split the middle term
⇒(x2−12x)+(x−12)=0, group pair of terms
⇒x(x−12)+1(x−12)=0, factor each binomials
⇒(x−12)(x+1)=0, factor out common factor
⇒x=12 or x=−1, set each factor to 0
Hence p and q are 12 and −1