P= mgh ( h - x )
h - x = mgh / P
h - x = mg/P ( h )
( h - x ) / h = mg/P
h/h - x/h = mg/P
1 - x/h = mg/P
x/h = 1 - mg/P
x/h = ( P - mg ) / P
h ( P - mg ) = xP ... 交义相乘
h = xP / ( P - mg )
I'll use a method called "completing square". This method does not require quadratic formula. Thus a form two student can easily understand.
h(h-x)=P/mg
h^2 - 2(x/2)h + (x/2)^2 = P/mg + (x/2)^2 <---Add (x/2)^2 on both sides
(h - x/2)^2 = (4P+mg)/4mg
Square rooting both sides,
h-x/2 = 士√{(4P+mg)/4mg}
h = x/2 士 √{(4P+mg)/4mg}