Add the number to the sum for that type of number:
If the number is even, add to sumOfEvens
if odd, add to sumOfOdds