The problem she commited was not substituting properly
x-y=7
subtracting x from both sides
-y=7-x
multiplying the whole equation by -1
y=-7+x
the first equation is

so substituting it should be

subtracting x it should be

which clearly means she did not substitute correctly