You need to get rid of -6 by adding 6, you also need to add 6 to 18.
4x = 24
Now you need to get rid of the 4 attached to the variable, you do this by dividing 4 since it is multiplying, also dividing 4 and 24
x = 6
So the value of x is 6
Hope this helps! :)