Your Thinking in the Wrong Plane
Imagine the width of the cake is X, the height is Y and the depth is Z. The rectangular slice is created by making two cuts, one across the X axis and one across the Y axis, cutting all the way through the cake in the Z direction. Now imagine cutting through...