To have a limit for A existing at x -> 1, the numerator has to have a factor x - 1.
so a - 1 = 1 and b - 1 = -1
so a = 2 and b = 0.
substitute in A and cancel (x - 1). then substitute x = 1.
that is the answer. perhaps the given answer in the question is not right.