If you notice that the differences between the outputs are:
The rule could very well be:
f(0)=18*0 + C = 25
so the rule is
Check f(1), f(2), f(3) to make sure that the rule is correct.