Solving using the zero product property