The slope is 2x.
X represents the slope.
Y represents the total cost or value
The +2 represents the Y-intercept.
I know this all for a fact because the equation is written out in the slope-intercept form which is commonly displayed like this:
Y = MX + B
Hope this helps and have a nice day.
-R3TR0 Z3R0