I am a multiple of 9 if you divide me by 8 there is 7 remaining

note the pattern. 9 is 8+1, so:

9*1 = 8*1 + 1
9*2 = 8*2 + 2
...
9*7 = 8*7 + 7