It would be x = 2, but why would it be?
Because... if you graphed the line x = 2, first of all you would see the graph as a vertical line, because for every value of y, x would equal 2. So that also means that when y equals 5, x would equal 2, or that the vertical line, x = 2 passes through the point (2,5). If you graphed the line y = 2, you would have a horizontal line which for all values of x, would have a y-value of 2.