You can put this solution on YOUR website! In what bases b, does (b+8) divide into (7b+8) with no remainder?
---------------
Base 4 is one --> 12 & 36.
Base 8 ----> 16 & 64
Base 16 ---> 24 & 120.
Base 40 ---> 48 & 288
That's all.
----
I doubt there's an algebraic solution to this.