A boy purchased a sandwich 52 inches long he wants to cut 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 should all three pieces be