Solve a quadratic equation using the zero product property