The slope for a line written in the form is m. You may have mistakenly used the coefficient of y instead of x.