If my input is 24 and my output is 8 what is my rule

Hard to say:

out = in-16 ?
out = in/3 ?
out = 2 * in(mod 5) ?

One data point does not give much to go on.