You start sorting the terms. For instance, the x's go left, and the numbers go right. Remember that if you move something to the other side, the sign flips.
So lets move the x to the left and the +12 to the right:
5x-x = -4-12
Now we simplify
4x = -16
x = -4
done.