Instead of explaining with words, I will list steps that hopefully you can understand!
Step 1: List it as it is so that we can get it correct!
5x + 2 = 8x + 5
Step 2: Subtract 2 from both sides.
2 - 2 = 0
5 - 2 = 3
Step 3: Simplify.
5x = 8x + 3
Subtract 8x from both sides.
5x - 8x = -3x
8x - 8x = 0
Step 4: Simplify.
-3x = 3
Step 5: Divide by -3.
-3 / -3 = 1
3 / (-3) = -1
x = -1
If you need help, let me know and I will gladly assist you!