Let h = height of the tower
Let x = length of shadow when Sun's altitude = 60°
Let x+40 = length of shadow when Sun's altitude = 30°
The shadow is 40 m longer when the Sun is at 30° compared to when it's at 60°.
When the Sun is at 60° altitude:
tan(60°)=xh
3=xh
x=3h ... (Equation 1)
When the Sun is at 30° altitude:
tan(30°)=x+40h
31=x+40h
x+40=h3 ... (Equation 2)
Substituting Equation 1 into Equation 2:
3h+40=h3
40=h3−3h
40=h(3−31)
40=h(33−31)
40=h(32)
40=32h
403=2h
h=203 m
Therefore, the height of the tower is 203 m.