A farmer purchased $100$ head of livestock for a total cost of $\$4000$. Prices were as follow: calves $\$120$ each, lambs $\$50$ each, piglets $\$25$ each. If the farmer obtained at least one animal of each type, how many did he buy?
total number of livestock$=100$,
number of calves$=x$,
number of lambs$=y$,
number of piglets$=z$,
cost of a calf$-120$,
cost of a lamb$-50$,
cost of a piglet$-25$
equations:
1) $x+y+z=100$
2) $120x+50y+25z=4000$
$24x+10y+5z=800$
$24x+10y+5(100-x-y)=800$
$19x+5y=300$
What do I do from here to find the solution? I don't know mods yet..