In a triangle, the sum of two of the angles is equal to the third. If the lengths of the two longer sides are 12 and 13, what is the length of the shortest side?