When the two equations are subtracted, r2 cancels out. The result is P(c) - E(c) = PO2 - EO2.
By the Pythagorean Theorem, PO2 = EO2 + h2 . Therefore, h2 = PO2 - EO2.
Substitute PO2 -EO2 for h2 into the equation P(c) - E(c) = PO2 - EO2.
Therefore, P(c) = E(c) + h2.