We have to write an equation of a quadratic function that has x-intercepts -2 and -5. This is, a function that has two roots: -2, and -5.
For doing so, we remember that if a function has n roots, it can be written as:
In this case, replacing the roots we have, we obtain that a quadratic function that has x-intercepts -2 and -5 is: