Question: how to find height of pyramid?
Answer: By the pythagorean theorem we know that.
s2 = r2 + h. ... 
since r = a/2.
s2 = (1/4)a2 + h2, and.
s = √(h2 + (1/4)a2)
This is also the height of a triangle side.