A vacant city lot is being turned into a neighborhood garden. The neighbors want to fence in a triangular section of the lot and plant flowers there. The longest side of the triangle section is 8 feet shorter than twice the shortest side. The third side is 2 feet longer than the shortest side. The perimeter is 58 feet. How long is each side?