Question 134750
A city wants to buy some animals but they only have 100 dollars. Horses cost 10 dollars cows cost 3 dollars and ducks cost 50 cents. How many animals can they buy. 

10x+3y+.5z <= 100 

----------------------
Make a list of numbers of horses, cows, ducks
There are no more than 10 horses so put the numbers 0 through 10
below horses.
with zero horses list the possible numbers of cows from 0 to 33
with zero horses and zero cows you can buy 0 to 200 ducks
-------------
With one horse the possible # of cows and ducks change.
Similarly with two horses, or three etc.
-----------------
Comment: there are a lot of possible combinations.
=======================
Cheers,
Stan H.