what is the equation of the line on the graph?

Given the graph of the line and it is required to find the equation of the line.
As shown the line pass through the points ( 0 , 1080 ) and ( 6 , 810 )
Let the months = x and $ Owed = y
The general equation of the line in slope - intercept form is ;
[tex]y=mx+b[/tex]Where m is the slope and b is y-intercept
The slope = Rise/Run
Rise = 810 - 1080 = -270
Run = 6 - 0 = 6
so, the slope :
[tex]m=\frac{-270}{6}=-45[/tex]And y - intercept is the value of y when x = 0
so, when x = 0 , y = 1080
So,
[tex]b=1080[/tex]Therefore the equation of the line will be:
[tex]y=-45x+1080[/tex]