A line parallel to the y-axis is a vertical line. Vertical lines have the characteristic that the x-coordinates of all of the points that comprise the line are equal. Since a line is a set of points, you can describe the desired line by saying:
which means "give me the set of all ordered pairs (x,y) where x is equal to 2 and y is every possible real value"
The equation is then simply
John
My calculator said it, I believe it, that settles it