A triangle has a perimeter of 31 feet. The middle side of the triangle is one more twice the length
of the shortest side, the longest side of the triangle is three times the length of the shortest side.
Find the lengths of all three sides.