A 46-inch pipe must be cut into three pieces. The longest piece will be twice as long as the shirtest piece; and the medium-sized piece will be 6 inches longer than the shortest piece. Find the lenght of each piece of pipe.