The idea is to get th numbers on one side of the equal sign and the x’s on the other side.
In order to bring anything across the equal sign you use the inverse operation.
Start by adding 2 to both sides giving you:
8x = -7 + 7x
Next subtract 7x from both sides:
x = -7