Let the digit at unit's place be x and the digit ten's place y.
Required no =10y+x
If the digit's are reversed,
reversed no = 10y+x
According to the question,
x+y=7...(1)
and
10x+y−2=2(10y+x)
8x−19y=2..(2)
multiplying equation no (1) by 19
Now adding the two equation,
19x+19y=133........(3)
8x−19y=2............(2)
__________________________
27x=135
x=5
From (1)
5+y=7
y=2
Required no is
10(2)+5=25