#### Answer

$y=-2(x+5)(x+1)$

#### Work Step by Step

We already know $y$, $x$, $p$ and $q$ from the given x-intercepts and the point, so in order to get the quadratic function we need to find $a$...
$y=a(x-p)(x-q)$
$-24=a(-7+5)(-7+1)$
$-24=12a$
$a=-\frac{24}{12}$
$a=-2$
Therefore the function is...
$y=-2(x+5)(x+1)$