Farmer Factor Puzzle

The Puzzle:

Farmer Factor
I have decided to write a deeply moving piece of poetry for you.

First of all: Farmer Factor (who lives at Fraction Farm) wants to stock up on feed for his three types of animals (chickens, pigs, cows).

His goal is to spend all of the $100 and get exactly 100 bags altogether to fill up his cart.

Here is my poem:

    Farmer Factor took his tractor to the factory
    100 bags of feed is what his tractor will carry

    The chicken feed is first, at five dollars a bag
    Pigs need their pig feed with 3 dollars on each price tag

    And for the cows 50c a bag will feed them happily
    How did Farmer Factor spend his cash on all these three?


Naturally, each type of animal food is a different price. How does he spend his money? Happy feeding!
Do you have the answer? Check against our solution!