Given the dataset:

First of all, we order it:

There are 8 elements, so, for the median we have:

Where n is the number of elements. Now, for n = 8:

This is a whole number, so the median is the semi-sum between the elements at positions i and (i + 1). That is, the fourth and fifth elements of the ordered dataset:
