What is the equation for this problem?
A farmer goes to a sale with exactly $100 and must buy exactly 100 animals,and he has to buy one of each. Pigs are $3, chickens are $.50, and cows are $10.
I already got the answer, but I would like the equation.