First you need to find the volume of each ingredient in one slice of cake this is made by cutting twice from the center to the circumference of the pie. The two cuts are "theta" degrees apart.
Come up with a function for
calories = f(theta)
then set the left side equal to 800 and solve for theta.
Then do 360/theta (if you work in degree) and get the number of slices