Let X={11,12,13,…,40,41} and Y={61,62,63,…,90,91}. Both sets contain 31 elements, so the total number of observations in X∪Y is n=62.
The mean of X is xˉ=211+41=26 and the mean of Y is yˉ=261+91=76. Hence the combined mean of X∪Y is μ=6231×26+31×76=226+76=51.
To find the variance σ2, we compute n1∑(xi−μ)2 over all observations.
For elements of X, as k ranges from 11 to 41, (k−51) ranges from −40 to −10, so
∑k=1141(k−51)2=∑j=1040j2=640×41×81−69×10×19=22140−285=21855.
Similarly, for elements of Y, as k ranges from 61 to 91, (k−51) ranges from 10 to 40, and one similarly finds
∑k=6191(k−51)2=∑j=1040j2=21855.
It follows that
σ2=6221855+21855=6243710=705.
Hence
∣xˉ+yˉ−σ2∣=∣26+76−705∣=∣102−705∣=603.