First, we re-arrange the data in ascending order
To obtain the first quartile, we use the formula:
n is the total number of values, which is 9
Checking through the data, this corresponds to 25 and 29. We take the average
Similarly, to obtain the third quartile, we use the formula:
Therefore:
Checking through the data, this corresponds to 38 and 42, so we take the average
Formula for interquartile range: