6(x+a) =b

X as subject

6x + 6a = b

6x = b - 6a
Now finish it off