You probably squared both sides and solved the resulting quadratic equation correctly. However, you have to check the solutions to the quadratic equation back in the original equation to see what is an actual solution and what is an extraneous solution.