By looking at the construction of the figure, we can safely assume both triangles are similar, i.e. their internal angles are equal and their sides are proportional. Following the proportion of the heights and bases of both triangles we can set this relationship: