what is the slope and y intercept of x=2

the line is vertical, so the slope is undefined.

Since x=2 everywhere on the line, at no point is x=0, which is needed for a y-intercept.