What is the rule if 8 is the input and 23 is the output

y = 3x-1

is probably the simplest, but it could also be

y = 2x+7
y = 23
y = (1+∛x)^3 - 4

or lots of other possibilities. There are infinitely many relations which will take 8 to 23.