Question 25Let $p$ and $q$ be positive integers satisfying the equation $p^2+q^2=3994(p-q)$. Determine the largest possible value of $q$.