figured out problem #5, finding sums between "halves"