In this question, first we will equate right column
A + 5 gives 2 ones digit,
so A will be such that on adding with 5 it gives either 2 or two digit number with 2 as ones digit.
Put 7 in place of A,
A + 5 = 7 + 5 =12 (with 1 as carry), so the condition is satisfied.
Now our next column equation will be
3 + 2 + carry = B
3 + 2 + 1 = B,
so, B = 6.
Hence, A = 7, and B = 6.