Question says that if x=2 and y=1 then find the slope and y-intercept.
If x=2 and y=1 means point (2,1) then there can be several solutions for slope and y-intercept.
But if x=2 and y=1 are separate lines then we can find unique solutions.
-------
Calculation for line x=2.
We know that any equation of type x=k is a vertical line having slope undefined.
Hence slope = undefined.
Since it is vertical line so there will be NO y-intercept.
------
Calculation for line y=1.
We know that any equation of type y=k is a horizontal line having slope zero.
Hence slope = 0.
Since it is horizontal line so y-intercept=1