How to find the equation of a line graph

There are several ways to write the equation, depending on the information given:

slope-intercept
point-slope
two-point
x- and y-intercepts

standard form
general form

So, read up on these topics, and you will learn several answers to your question