If my input is 16 and output is 2 what is my rule ?

Divide by 8

What about Input 24 and Output 4 ? The rules must be the same .

Divide by 4 and then subtract 2

y = m x + b

2 = m(16) + b
4 = m(24) + b
=================
-2 = -8m
m = 1/4
2 = (1/4)(16) + b
b = - 2

y = x/4 - 2
is your rule for those two points if linear

To determine the rule, we need to understand the relationship between the input and output values. From the given information, it appears that the output value is obtained by dividing the input value by 8.

So, the rule can be stated as: output = input / 8.

To verify this rule, let's substitute the given input (16) into the rule:

output = 16 / 8
output = 2

Since the output matches the given output (2), we can conclude that the rule is correct: output = input / 8.