A curve has equation y=x3+px2+qx−5y = x^3 + px^2 + qx - 5y=x3+px2+qx−5 where p p\,p and q q\,q are constants.
The curve passes through the point A(2,1)A(2, 1)A(2,1), and the gradient of the curve at A A\,A is 5.
Find the value of p p\,p and the value of qqq.