I understood your explanation for the general part,however,with reference to this problem,I am still a little confused.
Can u please elaborate on the usage of the weighted average method for this problem.
Ok, let me explain using a different example.
Say a meal consists of a sandwich and a milkshake. You eat 1/2 of the sandwich and drink 1/2 of the milkshake. Can I say you have had 1/2 of the meal? Sure, right?
If you eat only 1/4 of the sandwich and drink 1/4 of the milkshake, then you would have had only 1/4 of the meal.
What happens in case you eat 1/2 of the sandwich but drink only 1/4 of the milkshake? In that case, you have had less than 1/2 of the meal but certainly more than 1/4 of the meal, right?
So when piglet A is fed 1/4 of the Oats and 1/6 of the Barley, it is fed less than 1/4 of the total food but more than 1/6 of the total food.
Another thing to consider here is that number of piglets has to be a positive integer, say 'n'. Now, since it is given that each piglet gets the same amount of food and there are n piglets, each piglet will get 1/n of the total food. So piglet A must have got 1/n of the total food too.This 1/n must lie between 1/4 and 1/6. Only 1/5 lies between 1/4 and 1/6 (such that n is a positive integer). Hence n must be 5.
I was with you until the highlighted statement above. I understand the logic as to why piglet A is fed less than a 1/4 but more than a 1/6. That being said, why is 1/5 the only other variables? Even though piglets have an integer constraint, I fail to see how that translates into your last statement?