Subtract 5x from both sides of the equation
-y=-5x+2
Multiply each term in y = 5x by -1
y = 5x-2
Hope this helped. Also you can use this app called photo math, you scan the problem and it solves it with work.