Originally Posted by

**amishera** How to solve this?

"If a farmer buys chicken feed for £1.26 per tonne, pig feed for £2.74 per tonne and cattle feed for 78p per tonne. How much of each would he have if he had 100 tonnes for £100?"

the equations to solve become:

x+y+z = 100

x*1.26+y*2.74+z*0.78 = 100

Now if there three equations for 3 variables then it would be easy to solve this problem using standard equations solving technique such as substitution method or so on.

But with only 2 equations how to solve three variables?

If I start guessing then how to make educated and smart guess so that I don't have to go through the excruciating process of choosing x=1,2,3,... etc? I am hoping there are some techniques such as bisection method, newton-raphson method for solving problems numerically (and iteratively) to apply to this problem.

Some help would be greatly appreciated.

Thanks.