To find the difference in the medians of the two box-and-whisker plots, we need to identify the median value for each box plot based on the provided descriptions.
First Box Plot:
- First whisker: The end of the whisker is at halfway between 0 and 20, which is \( \frac{0 + 20}{2} = 10 \).
- Box starts: The box starts halfway between 60 and 80, which is \( \frac{60 + 80}{2} = 70 \).
- Median (line inside the box): The line inside the box is at halfway between 80 and 100, which is \( \frac{80 + 100}{2} = 90 \).
- Box ends: The box ends at 100.
- Second whisker: The end of the second whisker is at 120.
Median of the first box plot = 90.
Second Box Plot:
- First whisker: The end of the whisker is again at halfway between 0 and 20, which is \( \frac{0 + 20}{2} = 10 \).
- Box starts: The box starts halfway between 20 and 40, which is \( \frac{20 + 40}{2} = 30 \).
- Median (line inside the box): The line inside the box is at 40.
- Box ends: The box ends at 60.
- Second whisker: The end of the second whisker is at halfway between 80 and 100, which is \( \frac{80 + 100}{2} = 90 \).
Median of the second box plot = 40.
Difference in Medians:
Now we calculate the difference in the medians of the two box plots: \[ \text{Difference} = \text{Median of first box plot} - \text{Median of second box plot} = 90 - 40 = 50. \]
Thus, the difference in the medians of the two box-and-whisker plots is 50.
The answer is D. 50.