Similar triangles and side ratios.
The slider will change the scale factor and most of the vertices of both triangles can be moved. Drag point D to move the scales triangle.
Information: Similar triangles and side ratios.