Answer
$y=(x-3)^{2}+2$
Work Step by Step
We already know $y$, $x$, $k$ and $h$ from the given vertex and point, so in order to get the quadratic function we need to find $a$...
$y=a(x-h)^{2}+k$
$6=a(5-3)^{2}+2$
$4=a(2)^{2}$
$4a=4$
$a=\frac{4}{4}$
$a=1$
Therefore the function is...
$y=(x-3)^{2}+2$