The perimeter of a quadrilateral (four-sided polygon) is 58 inches. The longest side is three times as long as the shortest side. The other two sides are equally long and are 5 inches longer than the shortest side. Find the length of all four sides.