If your robot eats 2 zebra cupcakes every 8 days, then it eats 1 zebra cupcake every 4 days. To have enough cupcakes for 24 days, you need to calculate how many cupcakes the robot will eat during that time and then make or purchase that many cupcakes.
To calculate the number of cupcakes the robot will eat in 24 days, you can divide the total number of days by the number of days it takes for the robot to eat 1 cupcake:
24 days / 4 days per cupcake = 6 cupcakes
Therefore, you need to provide your robot with 6 zebra cupcakes to last for 24 days, assuming it eats 2 cupcakes every 8 days.