The equation of the line is y= -2x+10
First you need to find the slope of the two points.
The slope is -2
Then you use the slope intercept form to find the y intercept.
y=2x+b
You then have to plug in the x and y points.
6= -2(2) + b
6= -4+b
b=10
Lastly write using the slope intercept
y= -2x+10
Hope this helps <3