If x3+px2+qx+6 has x−2 as a factor and leaves remainder 3 when divided by x−3 find the value of p and q