b(3x+2)=m
3x+2 = m/b
3x = m/b - 2
x = ( m/b-2)/3
(With Latex)
or
(The first one is more simplified though )