I am going through the “Statistics problems” section and found that the answers to the below question made sense. However, when going to the review section, it seems like only the mean average matters as the median is discarded. Can anyone please provide clarity on why this is?

Test question:

The following table indicates the number of paying customers at a local restaurant by week.

|Week number|Number of customers|

|1|23|
|2|67|
|3|198|
|4|13|
|5|x|
|6|100|

For what values of x are both the mean and the median of paying customers for the entire six-week period between 70 and 80?

So basically, for the quiz version, any number that is <=65 or >=71 will not change the median. Since the current list’s median falls within the range already, we can essentially ignore that condition.