Let x be the ones digit and y be the tens digit. Then
Two digit number before reversing = 10y + x
Two digit number after reversing = 10x + y
As per the question
Since the digits differ by 3, so
Adding (i) and (ii), we get
Putting x = 7 in (i), we get
Changing the role of x and y, x = 4 and y = 7
Hence, the two-digit number is 74 or 47.