First thing you would do is distribute the negative on the outside of the parentheses to the inside terms:
9x - 5x + 7 = 39
Now, combine like terms:
4x + 7 = 39
Subtract 7 from both sides to get variables on one side of the equal sign and constants on the other:
4x = 39 - 7
4x = 32
Divide both sides by 4 to isolate the variable x.
x = 32 / 4
x = 8