Question 3For $p(x)=x^2-6x+849$, find the sum of all integers $m$ for which $p(m)$ is a perfect square.