If the sum of a and B is equal to 18.7, and the decimal point of a is moved one place to the right, it is exactly equal to B, what are a and B?

If the sum of a and B is equal to 18.7, and the decimal point of a is moved one place to the right, it is exactly equal to B, what are a and B?

(the decimal point of number a moves one place to the right, which is exactly equal to number b) indicates that a is 1 / 10 of number B
Let B be x, then a be x / 10
X+X/10=18.7
X=17
So number B is 17. Number a is 1.7