The height of the square pyramid is 29.580 cm.
The formula for height of the square pyramid is √[s^2−(a/2)^2]
where s is the slant height and a is the side of the base of the square.
Now in the given sum, a= 10cm and s= 30 cm.
Therefore,√[30)^2-(10/2)^2] cm
=√[900-5] cm
=√875 cm
=29.580 cm