So firstly, you want to set your equation to zero. You can do this by subtracting 40 on both sides of the equation. [tex] x^2+6x-40=0 [/tex]
Now, what two numbers add up to 6x and multiply to -40x^2? 10x and -4x. With this info, replace 6x with 10x and -4x: [tex] x^2-4x+10x-40=0 [/tex]
Next, factor x^2-4x and 10x-40 separately. Make sure that what's inside the parentheses is the same: [tex] x(x-4)+10(x-4)=0 [/tex]
Now you can rewrite the equation as: [tex] (x+10)(x-4)=0 [/tex]
Now using Zero Product Property, solve for x:
[tex] x+10=0\\ x=-10 [/tex]
[tex] x-4=0\\ x=4 [/tex]
In short, x = -10 and 4.