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+12x+32=0, (substitute the given values)
⇒x2+4x+8x+32=0, (split the middle term)
⇒(x2+4x)+(8x+32)=0, (group pair of terms)
⇒x(x+4)+8(x+4)=0, (factor each binomials)
⇒(x+4)(x+8)=0, (factor out common factor)
⇒x=−4 or x=−8, (set each factor to 0)
Hence p and q are −8 and −4