I'm doing an exercise that's on various topics and I do not know how to do this question (weighted 3 marks): $$ \begin{array}{l}\text { The polynomial } P(x)=(x-p)^{3}+q \text { has a zero at } x=1, \text { and when divided by } x, \\ \text { the remainder is }-7 . \\ \text { Find all possible pairs of } p \text { and } q \text { . }\end{array} $$
What I have done so far is set: $$P(1)=(1-p)^3+q=0$$ and I have also divided $P(x)$ by $x$ resulting in: $$\hspace{11.5mm}x^2-3xp+3p^2\\x\overline{)x^3-3x^2p+3xp^2-p^3+q}\\\hspace{14mm}\qquad\qquad\,-p^3+q\\\therefore-p^3+q=7$$
However, what do I do from here? I tried subbing $q$ into my $P(1)$ equation but how do I get "all possible pairs of $p$ and $q$"?