To evaluate a function at a given input, you have to substitute every occurrence of the variable with that particular value.
So, for the first function, you have

The name of the variable is obviously irrelelvant, so the same goes for the second function:
