The length of the shadow of a tree is 18 metres, when the sun is at an elevation of 40°. What is the height of the tree?