\[\boxed{\mathbf{310.}}\]
\[\textbf{а)}\ Среднее\ значение:\]
\[\frac{3 + 6 + 4 + 1 + 8 + 2}{6} = \frac{24}{6} = 4.\]
\[1)\ |3 - 4| = 1\]
\[2)\ |6 - 4| = 2\]
\[3)\ |4 - 4| = 0\]
\[4)\ |1 - 4| = 3\]
\[5)\ |8 - 4| = 4\]
\[6)\ |2 - 4| = 2\]
\[Ответ:6\ и\ 2.\]
\[\textbf{б)}\ Среднее\ значение:\]
\[\frac{12 + 9 + 8 + 11 + 2 + 4 + 3}{7} =\]
\[= \frac{49}{7} = 7.\]
\[1)\ |12 - 7| = 5\]
\[2)\ |9 - 7| = 2\]
\[3)\ |8 - 7| = 1\]
\[4)\ |11 - 7| = 4\]
\[5)\ |2 - 7| = 5\]
\[6)\ |4 - 7| = 3\]
\[7)\ |3 - 7| = 4\]
\[Ответ:12\ и\ 2;11\ и\ 3.\]