To solve x^2+5x=0, mia rewrote the equation as x(x+5)=0. Explain how rewriting this equation in factor form enable mai to solve the equation.