The slope of the line that passes through the points (x1, y1) and (x2,y2) is computed as follows:
[tex]m=\frac{y_2-y_1}{x_2-x_1}[/tex]In this case, the points are (24, 28) and (8,8), then its slope is:
[tex]m=\frac{8-28}{8-24}=\frac{-20}{-16}=\frac{5}{4}[/tex]The slope-intercept form of a line is:
y = mx + b
where m is the slope and b is the y-intercept
Substituting into the general equation with m = 5/4 and the point (24, 28) we get:
[tex]\begin{gathered} 28=\frac{5}{4}\cdot24+b \\ 28=30+b \\ 28-30=b \\ -2=b \end{gathered}[/tex]Finally, the equation is
y = 5/4x - 2