what is the math rule if u put in 1 and get 15, put in 2 and get 13, put in 3 and get 11, put in 4 and get 9, and put in 5 and get 7

did you notice that the output value decreases by 2 each time??

so start with
y = -2x + b
and use one of the given values, e.g. (1,15)
15 = -2(1) + b
17 = b

rule: y = -2x + 17

check it with the other values, it works