First, isolate the terms with h: 5hL + 6wh = S - 6Lw, or h*(5L + 6w) = S - 6Lw. Next, divide both sides by (5L + 6w) : h = .