if you look at delta y over x, you'll notice it always equals 2
i.e (22-2)/10-0 = 20/10 = 2
or (14-2)/6-0 = 12/6 = 2
or even (22-8)/10-3 = 14/7 = 2
This means that m (slope) is 2.
Now as for b. b is the y intercept and that value occurs when x = 0. On the table, when x = 0 y = 2 so b = 2.
y = mx + b becomes
y = 2x + 2