This is a linear function, that is a line. That is because it is a plain y (no exponent) and a plain x (again no exponent) and a constant (+2). It will only be necessary to plot two points to draw the line. (Since you are just starting out, you may want to plot a third point just to check your work, but it as your confidence grows you can leave that behind.)
There are two ways to graph it quickly.
solve for x = 0
y = 2(0) + 2 = 2 giving you the point (0,2)
solve for another value of x, say x = 1
y = 2(1) +2 = 2 + 2 = 4 giving the point (1,4)
Plot the two points and draw the line that connects them.
--OR--
Your equation is in slope-intercept form. y = mx + b
where b is the y-intercept, the value the function has when x = 0. So (0,2) is revealed as a point without any calculation simply because it is the meaning of the b term in the slope-intercept form.
Next use the slope of m = 2, again prominently on display in the equation. Starting at (0,2) count 1 unit over and 2 up. That will be the point (1,4). Again, plot the two points and draw the line that connects them. If the slope had been negative you would have counted to the right and then down instead.