Given slope of a equation is 6 and y-intercept 2.
Now, from option D, y = 6x-2
We can write it as:

So, we know intercept form

comparing with general equation, intercept of a equation is

Now slope of y = 6x-2,

Hence, slope of y=6x-2 is 6 and y-intercept is -2.