Given, the sum of the digits of a two-digit number is 7.
Let the units digit of the original number be x.
Then, the tens digit of the original number is 7−x.
The two-digit number =10(7−x)+(1×x)
=70−10x+x=70−9x
When the digits are interchanged, the new number is 10(x)+1(7−x)=10x−x+7=9x+7
New number = Original number - 27
9x+7=70−9x−2718x=36x=2
The tens digit =7−x=7−2=5
∴The original number is 52.