A triangle has a perimeter of 74 inches. If the three sides of the triangle are n, 3n+6, and 3nāˆ’2, what is the length of each side?