# Median Calculator

## Solution

The first step is to sort the values.

The sorted values are $$-3$$$, $$0$$$, $$1$$$, $$2$$$, $$5$$$, $$5$$$, $$9$$$, $$10$$$.

Next, the median value depends on the number of values. If the number of values is odd, then the median is the "central" value among the sorted values. If the number of values is even, then the median is the average of the two "central values".

We have $$8$$$values, so their number is even. Since the number is even, the median is the average of the "central values": $$-3$$$, $$0$$$, $$1$$$, $$\color{red}{2}$$$, $$\color{red}{5}$$$, $$5$$$, $$9$$$, $$10$$$. Calculate the median: $$m = \frac{2 + 5}{2} = \frac{7}{2}$$$.