For triangle to be possible to draw there is one condition that it needs to suit. The condition is: largest side has to be shorter than sum of others 2.
in first case is: 13 = 8+5 which is equal but not greater than 13.
Last case: 13 < 8+8 which means that remaining lenghts are