Answer:
This is a classic math problem. Let's break it down.
We know that the product of the ages of the 6 children is 1260. We also know that 4 of the children have prime-number ages.
Let's first find the prime numbers under 10: 2, 3, 5, and 7 ¹. Since 4 of the children have prime-number ages, we can deduce that the ages of these 4 children are 2, 3, 5, and 7.
Now, let's find the ages of the remaining 2 children. We can do this by dividing 1260 by the product of the ages of the 4 children we just found: 2 x 3 x 5 x 7 = 210. This gives us 1260 / 210 = 6. Therefore, the ages of the remaining 2 children are 6 and 6.
Finally, we can add up the ages of all 6 children to get the sum of their ages: 2 + 3 + 5 + 7 + 6 + 6 = **29**.
Therefore, the sum of the ages of the 6 children is **29**.