An isosceles triangle has exactly two sides that are equal in length​ (congruent). If the base​ (the third​ side) measures 46 inches and the perimeter is 119 ​inches, find the length of the two congruent​ sides, called legs.