In $\Delta ABC$, $\angle ABC = 90^\circ$ , $D$ is the midpoint of line $BC$. Point $P$ is on $AD$ line. $PM$ & $PN$ are respectively perpendicular on $AB$ & $AC$. $PM$ = $2PN$, $AB = 5$, $BC$ = $a\sqrt{b}$, where $a, b$ are positive integers. $a+b$ = ?
Source: Bangladesh Math Olympiad 2018 junior category.
I could not find any way to relate $PM$ = $2PN$ to this math.

$\triangle ABC \sim \triangle AMM' \sim \triangle PNM'$
$\frac{BC}{AB}=\frac{NM'}{PN}$
$PM'=PM=2PN$
$NM'=\sqrt{(2PN)^2-PN^2}=PN\sqrt3$
$\frac{NM'}{PN}=\sqrt3$
$\frac{BC}{AB}=\sqrt3$
$BC=AB\sqrt3=5\sqrt3$
$a=5,b=3,\color{blue}{a+b=8}$