The solution to a quadratic equation was x=-5 and x=2. What was the original equation?