We have already explored how circles and squares interact inside a lunchbox, but geometry isn't just about packing circles. Sometimes, the straight lines and sharp corners of square objects hide the most satisfying mathematical secrets. In this section, we are serving up two delicious cake-based puzzles. Continue reading further to devour the sweetness of the cake puzzle. Problem 1: The missing cake slice A square cake with a height of 5 \, \, cm is sliced into four quadrilateral pieces by cutting from the midpoints of the edges inward to a random central point. We know the top surface areas of three of the pieces: 20 \, \,cm^2 , 32 \,\, cm^2 , and 16\,\, cm^2 . We are required to find the volume of the missing piece. Before we can find the volume, we need to find the top surface area of the missing cake piece. This is the key to unlocking the problem. Before we tackle the full cake, look at the triangle diagram below. Look at the triangle above, the three vertices are A, B and O . M is the midpoint of the side AB . The dashed line joining O and M (called a median) divides the large triangle OAB into two smaller triangles: OAM and OMB . Let’s find out the relationship between the areas of these two smaller triangles. Since M is the midpoint of the side AB , both triangles have the same base length. And because they meet at the top point O , their perpendicular height is also the same. Because \text{Area} = \frac{1}{2} \times \text{base} \times \text{height} , these two smaller triangles have the exact same area! Now, look at the labelled diagram below. The square cake has four corners (A, B, C, D) and a central cut point (O) . This creates four large triangles: AOB, BOC, COD, and DOA . Each of these is further divided into two smaller triangles by the knife cuts, which join the point O to the midpoints of the opposite sides. As we just proved above, this perfectly divides all four large triangles into two sub-portions with equal areas. In the diagram, these equal-area pairs are labeled with matching numbers, from 1 through 4. Now consider the Pink and Green cake pieces. If we look at their numbered regions, they are composed of portions (1) + (2) and (3) + (4) . Similarly, the Yellow piece and the Missing piece are composed of portions (2) + (3) and (1) + (4) . Because (1 + 2) + (3 + 4) is exactly the same as (2 + 3) + (1 + 4) , we have a beautiful relationship: the sum of the areas of two opposite slices will always equal the sum of the other two opposite slices! We can now find the area of the missing piece. \text{Pink area} + \text{Green area} = \text{Yellow area} + \text{Missing area} 16 + 32 = 20 + \text{Missing area} Therefore, \text{Missing area} = 48-20 = 28 \, \, cm^2. Now that we know the missing piece has a surface area of 28 \,\, cm^2 , we can easily find its volume. Since the cake is exactly 5 \,\, cm tall, we simply multiply the area by the height: \text{Volume} = 28 \times 5 = 140 \,\, cm^3. Problem 2: The chocolate cake box Two square chocolate cakes are packed perfectly into a larger square box. The smaller cake has an area of 5 \,\, cm^2 and the larger cake has an area of 20 \,\, cm^2 . Given how they are tilted against the walls, the question is to find the exact area of the box. This is a fascinating puzzle that uses similar triangles, Pythagoras theorem and simultaneous equations in a beautiful way. Keep reading further to work out this together. Because both cakes are perfect squares, we can easily find their side lengths by taking the square root of their areas. Side length of the smaller cake is \sqrt 5 \,\, cm . Side length of the larger cake is \sqrt{20} = 2 \sqrt 5 \,\, cm . To find the size of the box, we need to map out the empty space around the cakes. Look at the marked diagram below. By drawing lines along the walls, we can create three right-angled triangles in the empty corners: one on the left (\triangle ABC) , one on the bottom (\triangle CDE) , and one on the right (\triangle EFG) . Let the angle of tilt be \alpha . Because the cakes are perfect 90 ^\circ squares, this angle cascades perfectly through all three of our right-angled triangles! Now let’s work out the geometry behind each of these right-angled triangles. We can use our handy trick with similar triangles. Note that all these triangles ABC, CDE and EFG are similar. \triangle CDE and \triangle ABC : \frac{x}{\sqrt 5} = \frac{a}{3 \sqrt 5}. So, a = 3x. Similarly, \frac{y}{\sqrt 5} = \frac{b}{3 \sqrt 5}. So, b = 3y. \triangle EFG and \triangle ABC : \frac{x}{\sqrt 5} = \frac{m}{2 \sqrt 5}. So, m =2x. Also, \frac{y}{\sqrt 5} = \frac{n}{2 \sqrt 5}. So, n = 2y. Since the side lengths of a square are equal, we can equate the horizontal length and the vertical height of the box in terms of x and y : \text{Length} = y+a=y+3x. \text{Height} = m+b =2x+3y. Equating these gives us, y+3x=2x+3y x=2y. Now consider the \triangle ABC : Using the Pythagorean Theorem, we have x^2+y^2 = 5. Substituting x=2y , we get (2y)^2+y^2=5 5y^2=5 y^2=1. Since a length is positive, we have y=1 \,\, cm . So, x = 2 \,\, cm . Thus, the side length of the chocolate cake box is y+3x=1+6=7 \,\, cm . Therefore, the area is 49 \,\, cm^2 .