Let's suppose I have one cat and when buying food for him I have to take into account this:
1 cat eats 2kg of food each 20 days
How can I get a formula to know how many days my food will last based on how many cats I have and how many food I've bought?
Example:
2 cats, I've bought 10kg of food
5 cats, I've bought 6kg of food
How many days the food will last? I need a formula so I can solve any input(cats, food kg bought) and get a output(days food will last)
Thanks!!!!!
From the condition we have that a cat eats $0.1$ kg per day. So therefore if we have $x$ cats and $y$ kgs of food. Then those $x$ cats will eat $x\cdot(0.1)$ kgs of food in one day. Divide $y$ by this and you will get wanted value. In other words
$$\text{Days} = \frac{10 \cdot \text{Kilos of Food}}{\text{No. of Cats}}$$