TeX source:
\begin{array}{rclcc}h^2 &=& p\cdot q &\vert &:q\\p &=& \dfrac{h^2}{q}\\&=& \dfrac{20^2}{5}\\&=& 80\, cm\end{array}