Since the slope is equal to -5 you can already get the beginning of the equation being y=mx+b; M=-5, now to find b you need to plug in your numbers: 12=-5(-2)+b then you get 12=10+b. subtract the 10 to find that b=2 then plug in all the numbers to find the answer y=-5x+2