Question 19Nonnegative integers m, n, p, q satisfy $3^m+5^n+6^p+7^q=47$. What is the greatest possible value of m+n+p+q? 24567