write the linear function in slope intercept format of the line passing through A (1,3) B(4,-4)

the two-point form is

y-3 = (-4-3)/(4-1) (x-1)

and you can massage that into what you need.