Write a rule for this function:

(-2,1), (0,4)
Also provide an explanation for how you got your answer. Thanks.

y=mx+b

1=-2m+b
second point:
4=0m+b

so b=4
if b=2, first equation then 2m=4-1
m=3/2

y=3/2 x + 4