In my Algebra lessons, I've run into this problem: 2√(x−5)+7=13.

The first thing that I did was divide the left and right side by 2. That's how the order of operations works, right? Multiplication before subtraction.

However, when I saw the answer, the first thing done was subtracting both sides by 7. How does that work?