We know that 8 pigs can eat 6 bags of feed in 20 days.
Now, we want to find out how long it will take 10 pigs to eat 15 bags of feed at the same rate.
First, let's find the rate at which one pig eats in one day:
Rate = (Bags of feed eaten) / (Number of pigs * Number of days)
= 6 / (8 * 20)
= 6 / 160
= 3 / 80
So, one pig eats 3/80 of a bag of feed in one day.
Now, we want to find out how long it will take 10 pigs to eat 15 bags of feed. Let's use the formula:
Time = (Amount of feed) / (Rate * Number of pigs)
= 15 / ((3/80) * 10)
= 15 / (30/80)
= 15 * 80 / 30
= 40 days
Therefore, it will take 10 pigs 40 days to eat 15 bags of feed at the same rate.