The function:
[tex]f(x)=x+2[/tex]
Represents a line that follows the form:
[tex]f(x)=mx+b \\ \\ \\ Where: \\ \\ m:slope \\ \\ b:y-intercept[/tex]
So in this case:
[tex]Slope:m=1 \\ \\ y-intercept:b=2[/tex]