A triangle has a perimeter of 39 feet. If the three sides of the triangle are n, 4n-2, and 5n-9, what is the length of each side