An 81 inch length of ribbon is cut into 3 pieces.the longest piece is 34 inches longer than the shortest piece.the third piece is to be half the length of the longest piece.find the length of each piece of ribbon.