There are two correct answers. This is a shift of 2 units up or 2 units left.
Try x=0. y=x is y=0. y= x+2 = y = 2. That's 2 units up.
However, it's also two units left.
y=x has the value y=2 when x=2.
y=x+2 has the value y=2 when x=0, so 2 units earlier, or shifted 2 units left.
y = (x +/- h) +/- k
That's a shift h units left for positive and right for negative.
That's a shift of k up for positive and down for negative.
y = x+2 is that y = (x+2) + 0 or y = (x+0) + 2? Both are the same.