We have, 5A+B365
Evidently, A + 3 is a number taking values from 3 to 12, So, either A + 3 is 5 or it is a two digit number whose unit digitis is 5. But, A + 3 is less than or equal to 12.
∴ A + 3 = 5 ⇒ A = 2
In the tens column, we have 5 + B = 6 ⇒ B = 1
Hence, A = 2 and B = 1