Answer: 9
In order, data set A is and data set B is . With values, each new median is the mean of the th and th values.
For A, the new median is if , if , and if .
For B, the new median is if , if , and if .
For , A’s median is less than B’s (for it is exactly less). For , A’s median, , is greater than . For , setting gives .
Check: With , new A is , with median , and new B is , with median .
Watch for: The most common wrong value is , the common median, rather than the added value . Both medians change with , so track each middle pair.