We have two kinds of baskets: ones for $30 and premium ones for $50. Let the number of baskets is "s" and the number of premium baskets is "p".
Shes spending $1,100 in total so we have:
30s + 50p = 1100lets make it simpler by dividing everything by 10:
3S+5P = 110Next we have a rule about the number of baskets.
The total number of baskets, standard and premium has to be between 25 and 30:
25 ≤ s + p ≤ 30Now lets try to solve for s in terms of p.
From our equation 3s + 5p = 110 lets isolate s:
s = (110-5P) / 3The thing. S has to be a whole number. So (110-5P) needs to divide by 3.
If you try out values of p you'll see a pattern: it only works out evenly when p leaves a remainder of 1 when divided by 3.
In words p has to be one of these:
1, 4 7 10 13 16 19 22 and so on.
Now lets look at the basket rule.
We know s + p has to be between 25 and 30. Lets use our formula for s:
s + p = (110-5P) /+P = (110-2P) / 3So we need:
25 ≤ (110-2P) / 3 ≤ 30Multiply everything by 3:
75 ≤ 110-2P ≤ 90Subtract 110 from all sides:
-35 ≤ -2p ≤ -20Divide by -2:
10 ≤ p ≤ 17.5Now lets combine both conditions.
We need p to be, between 10 and 17.5. P has to be one of those special values that keeps s a whole number.
Looking at that list, which values fall between 10 and 17.5? Just
10, 13 and 16.Lets check these:
- If p = 10: s = (110-50) / 3 = 20. Total baskets = 30.
- If p = 13: s = (110-65) / 3 = 15. Total baskets = 28.
- If p = 16: s = (110-80) / 3 = 10. Total baskets = 26.
All three work out fine.
So the final answer is:
The smallest possible number of premium baskets is 10 and the largest is 16.