The quadratic equation is (x-3)(x+2) i.e. x2 - x -6 i.e. p = -1 and q = -6
Just as an additional note; in a polynomial equation of degree n (i.e. 2 in this case), the coefficient of the term in n-1 (1 in this case) is the sum of the roots with the sign changed and the constant term is the product of the roots * (-1)n.