You added b to the expression instead of substituting b into the expression for x.