9 years.
Explanation:
- The tree doubles in height each year.
- In 10 years, it reaches full height.
- This means that one year before reaching full height, it must have been half of its maximum height.
- So, at year 9, the tree was half of its final height before doubling in its 10th year.