Solve for x x/(x+2)+1/x=1