Question 23Let $p$ and $q$ be positive prime integers such that $p^3-5p^2-18p=q^9-7q$. Determine the smallest value of $p$.