Let me provide an alternate solution. The height of the tree is the height of the man plus the portion above the man. This portion has length 6tan(42 degrees), which is about 5.4 meters. Adding this to the man's height, we see that the height of the tree is about 7.0m. I don't think you can assume that the angle between the man's sightline of the top of the tree and the foot of the tree is 90 degrees - consider the extreme case of the man standing really far away from the tree. Hope this helps!