A tree is broken at a height of 35 m from the ground and its top touches the ground at a distance of 12 m from the base of the tree. If the tree is at right angles to the ground, find the original height of the tree.