The reason for this is the following:
According to the sum of the internal angles of the triangle is 180, then
∠C = 180-∠A-∠B = 180- 100-40 = 40
If the angle (c in the figure) formed by both sides of the joint is 40, it is qualified.