Solve the equation algebraically.