The formula for the slope is <em>y=mx+b</em>, where <em>m</em> is the slope and <em>b</em> is the y-intercept. Since 2 is being multiplied by <em>x</em>, that means it is the slope. The variable <em>y</em> is being added, so it has to be the y-intercept.