The comparison is height to shadow, so the ratios can be written as height/shadow. One ratio represents the tree while the other represents the boy. The unknown value is the height of the tree, so x will fall in the numerator.
Find the cross products, set them equal, and simplify.