Expand the expression in the equation
$$\left(y - 3\right) \left(y + 7\right) = 0$$
We get the quadratic equation
$$y^{2} + 4 y - 21 = 0$$
This equation is of the form
a*y^2 + b*y + c = 0
A quadratic equation can be solved
using the discriminant.
The roots of the quadratic equation:
$$y_{1} = \frac{\sqrt{D} - b}{2 a}$$
$$y_{2} = \frac{- \sqrt{D} - b}{2 a}$$
where D = b^2 - 4*a*c - it is the discriminant.
Because
$$a = 1$$
$$b = 4$$
$$c = -21$$
, then
D = b^2 - 4 * a * c =
(4)^2 - 4 * (1) * (-21) = 100
Because D > 0, then the equation has two roots.
y1 = (-b + sqrt(D)) / (2*a)
y2 = (-b - sqrt(D)) / (2*a)
or
$$y_{1} = 3$$
$$y_{2} = -7$$