We'll generalize the situation. Imagine that you want a quadratic equation that has the roots a and b. Then, your equation will be in the form:

, where

is a constant.
Notice that if x=a or x=b the equation is true. To simplify, we'll choose A=1. In that problem, a=5 and b=-2. Hence:
