Solve the following math problem step by step. The last line of your response should be of the form Answer: \boxed{$Answer} where $Answer is the answer to the problem.

<image>If $\overline{W P}$ is a perpendicular bisector, $m \angle WHA=8 q+17$, $m \angle HWP=10+q$, $AP=6 r+4$, and $PH=22+3 r$, find $q$.