It might be easier to work from this picture of the top of the cake with all possible cuts marked:
What do all the numbers 0-9 add to?