S = 3Lw + 3wh + 4hL Subtract 3Lw from both sides
S - 3Lw = 3wh + 4hL Factor out h
S - 3Lw = h (3w + 4L) Divide both sides by (3w + 4L)
[tex] \frac{S - 3Lw}{3w + 4L} [/tex] = h Switch the sides to make it easier to read
h = [tex] \frac{S - 3Lw}{3w + 4L} [/tex]