Question 1147119
.


The post does not have restrictions on the digits choice,


so I can take one number as B = 10000 and the other as A = 22345, providing the difference  A - B = 12345, exactly as it is required.


----------------


Not much sense in the problem and in its solution, without posing some restrictions.