[tex]y=3x+2\\\\\text{replace x with y and y with x}\\\\3y+2=x\\\\\text{solve for y}\\\\3y+2=x\ \ \ \ \ |-2\\\\3y=x-2\ \ \ \ \ |:3\\\\\boxed{y=\dfrac{x-2}{3}}[/tex]