n2739178
Hi all
I can't understand
MGMAT's
OG guide answer for this one...
1st question: why can't you exchange apples with bananas 1 for 1 until you get the right answer?
2nd question: They're banging on about 5 apples having the same value as 7 bananas, then taking 5 apples away from the 'partial solution ~(i.e. when A = 9 and B = 0) and adding 7 bananas... Why would you do that? It makes no sense to me... If you set the vlaue of the apples = bananas you get them both equalling $3.50 in value which equals $7 between both of them... which is clearly over $63 ...
this is really doing my head in!
thanks
I do not know what exactly your book says but I am guessing this is how they have solved it:
7a + 5b = 63
Such equations have infinite solutions. We can get a single solution under particular constraints. (Will explain this later)
One thing we notice right away is that one solution to this problem is a = 9 and b = 0 because 63 is divisible by 7.
7a + 5b = 63
a = 9, b = 0
a = 4, b = 7 (To get this solution, subtract 5, co-efficient of b, from a above and add 7, co-efficient of a, to b above)
a = -1, b = 14 (Again, do the same to the solution above)
a = 13, b = -7 (You will also get solutions when you add 5 to a of any other solution and subtract 7 from b of the same solution)
Hence there are infinite solutions.
Here the constraints are that a and b should not be negative. Also, they should not be 0 since he buys at least 1 apple and at least 1 banana. Only 1 solution satisfies these constraints so answer is a = 4 and b =7.
Why this works is because when you reduce a by 5, the reduction in 7a is offset by the increase in 5b when you increase b by 7. Let this suffice for now. This is the theory of Integral solutions to equations in two variables. I will explain you the complete theory soon.