Jane bought a party-length sandwich 52 inches long. She wants to cut it into three pieces so that the middle piece is 5 inches longer than the shortest piece and the shortest piece is 8 inches shorter than the longest piece. How long will each piece be?