
Let the two digit number be ' xy '
where, x is the ten's place digit, and y is one's place digit, now let's proceed further ~
The origin number can be written as :

[ because x is at ten's place ]
of the digits are swapped, the new number will be :

According to conditions provided in the question : -





here we got our first equation, let's find the other one ~




we got our second equation ~
Now it's time to subtract equation (1) from equation (2) :



hence, value of y is 2, use this value in equation (2) to find x ~



Therefore, the required number is xy = 42