If the image of the first-order function is known to pass through the points (- 2,7), (0,3), find the analytic formula of the function, and judge whether the point a (0.5,2) is on the line

If the image of the first-order function is known to pass through the points (- 2,7), (0,3), find the analytic formula of the function, and judge whether the point a (0.5,2) is on the line

Because a function of a degree passes through (0,3), we can assume that the analytic expression of a function of a degree is y = KX + 3
Then we substitute x = - 2, y = 7 into y = KX + 3 to get the following result:
7=-2k+3
2k=3-7
2k=-4
k=-2
Substituting k = - 2 into y = KX + 3, the analytic expression of the function is y = - 2x + 3
When x = 0.5, y = - 2 × 0.5 + 3 = - 1 + 3 = 2, it means that a (0.5,2) is on this line