[Solution by Dr. Abubacker] $AP\perp BC$: slope of $AP=3$, so slope of $BC=-\frac13$: $\frac{k-3}{h-8}=-\frac13\Rightarrow h+3k=17$. $BP\perp AC$: slope of $BP=1$, so slope of $AC=-1$: $k+2=-(h-5)\Rightarrow h+k=3$. Solving: $k=7$, $h=-4$. $h^2+k^2=16+49=65$. Answer (3).