In order to calculate a shift of 5 units up, we need to add 5 units to the function value (that is, the value of y):
Then, to calculate a shift of 1 unit to the right, we need to subtract 1 unit from the value of x:
Therefore the correct option is the first one.