Total calories = 400 + 0 + 200 = 600 calories
If we use the vanilla cake, we will have:
- Vanilla cake: 300 calories
- Chocolate cake: 400 calories
- Strawberry cake: 200 calories
Total calories = 300 + 400 + 200 = 900 calories
Both options exceed the customer’s budget, so we need to ﬁnd a third cake to use. Since the
strawberry cake is the only one that costs less than $8, we can use it with either the chocolate
or vanilla cake:
- Strawberry cake: 200 calories
- Chocolate cake: 400 calories
- Vanilla cake: 0 calories
Total calories = 200 + 400 + 0 = 600 calories
This option meets the customer’s requirements and stays within their budget. Therefore, the
customer should buy one chocolate cake and one strawberry cake.
To ﬁnd the total number of calories in two cakes, we need to add the calories in each cake:
200 + 400 = 600
Since the customer has a budget of $20 and a maximum of 600 calories, the total cost of the
two cakes should be less than or equal to $20.
WizardLM- Empowering Large Language Models to Follow Complex Instructions