Nagaraj Nanjappa has a party length submarine sandwich 59 in. long. He wants to cut it into three pieces so that the middle piece is 5 in. longer than the shortest piece and the shortest piece is 9 in. shorter than the longest piece. How long should the three pieces be?