Question 170Find all pairs of positive integers $(p, q)$ such that both equations $x^{2} - p x + q = 0$ and $x^{2} - q x + p = 0$ have integral solutions.