If you know the slope (m) any y-intercept (b) of a line, this page will show you how to find the equation of the line.
The slope is Example: The slope is 3
...and the y-intercept.
The y-intercept is Example: The y-intercept is -7