Explanation:
exactly.
this creates 2 similar triangles.
that means all angles are the same. and all the side lengths of one triangle correlate to the corresponding side lengths of the other triangle by the same multiplication factor.
15 × f = 30
f = 30/15 = 2
and now the same factor applies also to the relation of the heights :
6 × 2 = 12 ft
the tree is 12 ft tall.