The sum of a and B is 56 and 1. If the decimal point of B moves one place to the right, it is equal to A. what is a?

The sum of a and B is 56 and 1. If the decimal point of B moves one place to the right, it is equal to A. what is a?

According to the meaning of the title, a is bigger than B, and their ten digit and decimal digits are the same
Let a be a and B. then, move the decimal point of a to the left to get B, that is, B is a and B is the decimal place of B
Then there are:
A + B = (a * 10 + b) + (a + 0.1 * b) = a * 10 + (a + b) + 0.1b = 56.1
It can be seen from the above formula that the decimal place B = 1,
Bit = a + B = 6, that is, a = 5
So the number a is 51 and the number B is 5.1