One side of a triangle is 3 times the second side. The third side is 17 feet longer than the second side. The perimeter of a
triangle is 52 feet. Find the length of each side.