first off let's notice a few things on that function.
the graph "passes" -5, that's a root, the graph "touches" 3 and goes back up, that's another root, but that's a root with an "even multiplicity", the heck does that mean? well, it means there are at least two roots, could be 4 or 6 or 18, so long is even, but we're shooting for the least degree, so we'll settle for 2.
now hmm, let's reword that
what's the equation of a function with roots at -5 and 3 twice, that it passes through (0 , 9)?
![\begin{cases} x = -5 &\implies x +5=0\\ x = 3 &\implies x -3=0\\ x = 3 &\implies x -3=0\\ \end{cases} \\\\[-0.35em] ~\dotfill\\\\ \stackrel{original~polynomial}{a ( x +5 )( x -3 )( x -3 ) = \stackrel{0}{y}}\hspace{5em}\textit{we also know that } \begin{cases} x=0\\ y=9 \end{cases} \\\\\\ a ( 0 +5 )( 0 -3 )( 0 -3 ) = 9\implies 45a=9\implies a=\cfrac{9}{45}\implies a=\cfrac{1}{5} \\\\[-0.35em] ~\dotfill](https://img.qammunity.org/2024/formulas/mathematics/high-school/dygy4q95tuqg4gxbg4l6csot5hdz9ryy32.png)

Check the picture below.