In order to solve this expression for x we need to isolate the variable x in one side of the equation.
We do that by isolating all terms with the variable 'x' in one side of the equation and all terms without the variable 'x' in the other side of the equation:
2x + 5 = 5x - 7
2x - 5x = -7 - 5
Then, we add the common expressions:
-3x = -12
Finally, we can isolate the variable 'x' by dividing both sides by -3:
x = (-12) / (-3) = 4
So we have that x = 4.