I don't see where the dotted line is shown perpendicular to any line.
Define 0, 0 at the lower left corner of the triangle.
Equation of the dotted line: Y = 0.2X
Equation of the right side of the triangle: Y = -.7X + 14
Solve the two equations for X to get the X coordinate of the intersection:
X = 14/0.9 = 15.556
Solve the two equations for Y to get the Y coordinate of the intersection:
Y = 14/4.5 = 3.111
Length of the line from 0, 0 to 15.556, 3.111 is the square root of X^2 + Y^2
Length = 15.86