One of my friends gave me this question.
1 apple costs \$1
20 oranges costs \$1
1 mango costs \$5
How many items do you need to buy in order to have a total of 100 items and a value of $100?
I was wondering if there is an algebraic method rather than guess and check.
I tried:
$$ \left\{ \begin{array}{lcl}x+20y+z&=&100,\\ x+y+5z&=&100. \end{array}\right. $$
but no luck.:(
Thanks
Let $x,y,z$ be the number of apples, oranges and mangoes needed to buy. Then $$x+y+z = 100$$ and $$x+ \frac{y}{20} + 5z = 100$$ Subtracting one from another gives $$19y = 80z$$ Since, $y,z$ have to be whole numbers, we want to look for the LCM of $80$ and $19$, which is $80\times 19$. So, $$y=80, z=19$$ and this gives $$x=1$$
Note that we cannot take any higher common multiple of $80,19$ because then the equations won’t be satisfied.