Since the slope is -2 we know that m=-2. Now use the standard form of y=mx+b and plug in the coordinates (-8,2). We know y=2, x=-8, and m=-2. Therefore we get 2=-2(-8)+b. Now solve for b and you get -14. Therefore, the equation is y=-2x-14.
Hope this helped!