re-arrenge y=mx+c

m = (y-c)/x

If that's not what you want, try to be more specific