Answer: [tex]y=-\frac{2}{5}x+12[/tex]
y = mx + b
m = slope = [tex]\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{18-8}{-15-10}=\frac{10}{-25}=\frac{2(5)}{-5(5)}=-\frac{2}{5}[/tex]
The y-intercept(b) can be found by substituting a point into the function.
[tex]y = -\frac{2}{5}x + b \\\\8=-\frac{2}{5}(10) + b\\\\8=-4+b\\\\b=8+4=12[/tex]
Therefore, the function is:
[tex]y=-\frac{2}{5}x+12[/tex]