A rope that is 168 ft long is to be cut into three pieces such that the second piece is 6 ft less than three times the first, and the third is 2 ft more than two-thirds of the second. Find the length of the longest piece.