Find the equation of the quadratic whose graph cuts the $x$-axis at $5$, passes through $(2,5)$ and has axis of symmetry $x=1$.