If the image of a function y = KX + B passes through points a (0,2), B (1,0), then B+___ ,k=_____

If the image of a function y = KX + B passes through points a (0,2), B (1,0), then B+___ ,k=_____

Take a and B into the equation
2=0k+b
B = 2, k = - 2
0=1k+b