--------------------------------------------------------------------------
Explanation
n = 14 items are in the set.
n/2 = 14/2 = 7 which means we'll look at the values in slots 7 and 8, which are the two "47"s. The midpoint of those items is 47.
The median is 47.
Another way to determine the median is to repeatedly cross off the first and last items until you narrow things down to the middle-most value. Once again the two "47"s are tied for the middle-most position, which is why we take the midpoint. This midpoint trick only applies when the sample size n is even.
---------
We have the median (47). What do we do with it? We'll use it to split the data into two halves such that:
In this case,
Carefully note that each subset L and U has 7 values each.
The medians of sets L and U are 35 and 50 in that order.
Q1 = first quartile = median of set L = 35
Q3 = third quartile = median of set U = 50
IQR = interquartile range
IQR = Q3 - Q1
IQR = 50 - 35
IQR = 15
Side note: The IQR is one way to measure how spread out the data is. On a box-and-whisker plot, the IQR is the width of the box.