[tex]y = 3x + 6 \\ switch \: y \: and \: x[/tex]
[tex]x = 3y + 6 \\ solve \: for \: y \\ x - 6 = 3y \\ y = \frac{x - 6}{3} [/tex]