We need to form correct pairs with the boxes in blue. For this purpose we'll have to find the first and third quartile and the median of the given set. Firstly we should order it from least to greatest:
The median of the distribution is the value that separates the lower half and the higher half. When we have an even number of elements like in this case (here we have 8) the median is the mid value between the highest value of the lower half and the lowest value of the higher half. Here the median would be the middle value between the 4th and 5th elements i.e. between 36 and 41. Then the median is:
The first quartile is the median of the lower half. The lower half is the set:
We have an even number of elements (4 in total) so the median (1st quartile) is the middle value between the 2nd and the 3rd:
Then the first quartile is 11.
The third quartile is the median of the higher half:
Again, we have four elements so the median is given by the middle value between the 2nd and the 3rd:
Then the 3rd quartile is 45.
The difference between the median (38.5) and the largest value (49) is given by a substraction:
With all this information we can match the correct pairs: