The perimeter of a triangular-shaped garden is 58 feet. The longest side of the garden is 18 feet more than the shortest side of the garden. The other side of the garden is 3 times the length of the shortest side of the garden. What is the length of the shortest side of the garden (in feet)?