Int his problem you are solving for x instead of y so it's going to go like this
[tex]f(x) = \frac{2}{3}x + 4 \\ 2 = \frac{2}{3} x + 4 \\ - 2 = \frac{2}{3} x \\ \frac{3}{2} \times - 2 = x \\ - 3 = x[/tex]
isolate x and then to clear the fraction, use the recipricol.