Jason places a mirror on the ground 40 feet from the base of a tree. He walks backwards until he can see the top of the tree in the middle of the mirror. At that point, Jason's eyes are 6 feet above the ground and he is 8 feet from the image in the mirror. What is the height of the tree?