y-intercept = 3; passes through (1,2)

the equation must be

y = mx 3
but (1,2) lies on it, so
2 = m(1) + 3
-1 = m

y = -x + 3