To find the number of treats given per trick-or-treater, let's examine the data provided in the table.
We can find the number of treats per trick-or-treater by dividing the total number of treats by the number of trick-or-treaters for each entry:
-
For 4 trick-or-treaters:
\[ \text{Treats per trick-or-treater} = \frac{12}{4} = 3 \] -
For 5 trick-or-treaters:
\[ \text{Treats per trick-or-treater} = \frac{15}{5} = 3 \] -
For 7 trick-or-treaters:
\[ \text{Treats per trick-or-treater} = \frac{21}{7} = 3 \] -
For 10 trick-or-treaters:
\[ \text{Treats per trick-or-treater} = \frac{30}{10} = 3 \] -
For 14 trick-or-treaters:
\[ \text{Treats per trick-or-treater} = \frac{42}{14} = 3 \]
From this data, we can see that the family always gives out 3 treats per trick-or-treater.
Now, if 21 trick-or-treaters visit their house, the total number of treats given can be calculated as:
\[ \text{Total Treats} = \text{Number of Trick-or-Treaters} \times \text{Treats per trick-or-treater} = 21 \times 3 \]
Calculating this gives us:
\[ 21 \times 3 = 63 \]
Thus, if 21 trick-or-treaters visit their house, they will have given away 63 treats.
The answer is \( \text{D. } 63 \).