A local crafting studio is organizing a DIY Candle Making Workshop.
The table shows the quantity of materials needed for each adult and each junior attending the event.
| Material | Adult | Junior |
|---|---|---|
| Soy Wax | 180 g | 100 g |
| Fragrance Oil | 12 ml | 5 ml |
| Wicks | 2.0 wicks | 1.0 wick |
An algorithm is used to determine how much soy wax, how much fragrance oil, and how many wicks to order for an event based on attendance numbers.

Write python code to implement the algorithm shown in the flowchart.
Your code should:
math).Practise Edexcel GCSE Computer Science Develop code with exam-style questions for GCSE Computer Science. 57 questions covering Decomposition and abstraction to solve problems, Read, write, analyse and refine programs, Converting algorithms into programs, Techniques for readable, maintainable code, Identifying and correcting program errors, and Evaluating program fitness and efficiency, matched to the Edexcel GCSE Computer Science (1CP2) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.