On the first line of the solution, I am changing the order of the (y − x) into (x − y) by placing a minus in front.
This is because −(x − y) = −x − (-y) = −x + y = y − x.