Please help me with this quadratic equation question! I always give out 5 stars, thanks and brainliest to people that help me with a good explanation.

Find the values of p and q given that 12x² - 13x - 7175 = (x-p) (qx + 287)