Solving by factoring and graphing