28=8x+12-7x
combine like terms:
8x-7x = 1x = x
now you have
28=x+12
subtract 12 from both sides
16=x
switch sides
x = 16