The equation of a line is y=mx + b, where m is the slope and b is the y-intercept.
In this case, the slope of the line is 1, and the y-intercept (the point where the line crosses the vertical axis) is 3. So you just need to plug in the 3 in place of b.