when running a line, in a right-triangle, from the 90° angle perpendicular to its opposite side, we will end up with three similar triangles, one Small, one Medium and a containing Large one, from where we can use proportions to get their sides, so Check the picture below.