To solve x²+5x=0, Mai rewrote the equation as x(x+5)=0. Explain how rewriting this equation in factored form enables Mai to solve the equation.