Both students followed the teacher's instruction. The addition property of equality states that if 2 numbers x and y are equal x=y, then, x+a=y+a.
In this case both students applied the property correctly. One of them added 9 to both sides of the equation and the other one added 2 to both sides.
The answer is yes, both followed the teacher's instruction.