To check if distances can be a triangle add the smaller two distances together. If the sum is larger (not equal to) than the longest distance then it is a possible side. For example, 2,2,4 or 1,2,5cannot be a triangle, 2,3, 4 can be a triangle because 2+3 is greater than 4.