Answer:
Basket A contains 8 balls, basket B contains 8 + 6 = 14 balls, and basket C contains 17 - (8 + 6) = 3 balls.
Let's call the number of balls in basket A "x".
Since there are 6 more balls in basket B than in basket A, we can write the equation for the number of balls in basket B as x + 6.
And since the total number of balls in baskets B and C is 17, we can write the equation for the number of balls in basket C as 17 - (x + 6) = 17 - x - 6.
So the total number of balls in baskets A, B and C is x + (x + 6) + (17 - x - 6) = x + x + 6 + 17 - x - 6 = 22.
Therefore, we can solve for x:
2x + 6 = 22
2x = 16
x = 8
So basket A contains 8 balls, basket B contains 8 + 6 = 14 balls, and basket C contains 17 - (8 + 6) = 3 balls.
Regarding the carpet, a room measuring 5 m x 7 m is 35 m². If each box of carpet covers 10 m², then 35 m² will need 35/10 = 3.5 boxes of carpet. This means that there will be 3.5 boxes * 10 m²/box = 35 m² of carpet. So there will be no carpet left over.