If y = x + 2, is a function, then we have to put different values of x to generate y values. Here, x is the input value and y is the output value. Suppose, if x = 0, then y =2, if x = 1, then y = 3, if x = -1, then y = 1, and so on. Now plot these values in a graph and attach the points.