To, find b, let us find m first
Formula of slope, m=[tex] \frac{y2-y1}{x2-x1} [/tex]
where, (x1,y1)=(-1,8) and (x2,y2)=(3,16)
m=[tex] \frac{16-8}{3-(-1)} =\frac{8}{3+1} =\frac{8}{4} =2 [/tex]
m=2
Plugging m=2 and (x,y)=(-1,8) in y=mx+b
8=2*-1+b
8=-2+b
Adding 2 on both sides
b=10