The measures of the three sides of a triangle can be represented by the algebraic expressions X, 3X -1, and 4X +2. The perimeter of the triangle is 81 inches. What are the links of the sides of the triangle?