The equation of a line represents the behavior of a function y depending on the values of a variable x. One can get the formula of a line when you know its slope and a point which the line go through.
Where m is the slope of the line, y0 and x0 represents the point where the line go through