A linear equation in slope-intercept form from two points is given by (y - y1)/(x - x1) = (y2 - y1)/(x2 - x1).
Here, y1 = 2200, x1 = 12, y2 = 3000 and x2 = 10, then
(y - 2200)/(x - 12) = (3000 - 2200)/(10 - 12)
(y - 2200)/(x - 12) = 800/-2 = -400
y - 2200 = -400(x - 12)
y = -400x + 4800 + 2200
y=-400x+7000