From the ten's place, we can say that either A has to be 2 or 3.If A=3, then the sum is not satisfied. So, A=2. Then, B=5.A=2 and B=5