Jeff is thinking of a function machine.He says that the output is 5 when the input is 4.What are two different rules that he could be thinking of.

There can be many possible rules. I can suggest:

Output=input+1, or
Output=input*2-3