Have you ever noticed that some things always change in the same way? For example, if you know the number of bicycles, you can always find the number of wheels by multiplying by 2. In math, we have a special name for a rule that tells us how to get one number from another: a function.
You can imagine a function as a magic machine. You put a number in (the input), the machine uses its rule, and it gives you back a new number (the output). If you put in the same input, you will always get the same output.