Rearrange the quadratic equation so that it is equal to 0. Then factor the equation.
X^2-4X=-2X+24
X^2-4X=-2X+24