Rewrite the logarithmic equation in exponential form.
logx8=y
xy=8
We can solve for x.
x=y8
Then substitute:
x<8
y8<8
Since y and x are integers, the only reasonable options are:
38=2
18=8
Since the number needs to be smaller than 8, only 38 works, so y=3.