Suppose that $a$ and $b$ are distinct positive integers satisfying $20a + 17b = p$ and $17a + 20b = q$ for certain primes $p$ and $q$. Determine the minimum value of $p + q$.

Let's think step by step and output the final answer within \boxed{}.
user