Given that the image of a function of degree passes through the point A. (0,8) B (- 4,0), find the analytic expression of the function

Given that the image of a function of degree passes through the point A. (0,8) B (- 4,0), find the analytic expression of the function

Y = KX + B
8=b
0=-4k+b k=2 b=8
y=2k+8