Nagaraj Nanjappa has a party-length sandwich 59in. 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 9in. shorter than the longest piece. How long should the three pieces be?