The formula for finding the slope of the equation of a line is m= [tex]\frac{y₂-y₁}{x₂-x₁}[/tex}
Your equation would look like, m= [tex]\frac{6-0}{2-5}[/tex]
Which reduces to, m= [tex]\frac{6}{-3}[/tex]
Which reduces even further to just m= -2
Substitute one of the points into the equation y=-2x+b to solve for the variable b
I will substitute (5,0) into the equation
5=-2(0)+b
5=0+b
5=b