We can represent this number by abc so:
cba - abc = 297
(100c+10b+a) - (100a+10b+c) = 297
99 (c-a) = 297
c - a = 3
c - 3 = a
acb - abc = 18
(100a+10c+b) - (100a+10b+c) = 18
9 (c-b) = 18
c - b = 2
c - 2 = b
a < 7
c - 3 < 7
c < 10
The number's digits are c-3, c-2 , c so one possible number is (when c=4) 124.