In the question, we are given the result from the two doctors
Doctor 1 : 5, 10, 10, 15, 20, 20, 20, 100
Doctor 2: 10, 10, 10, 20, 20, 20, 25, 25
Firstly, we need to calculate the median
The median = n / 2
The two numbers at the middle are 15 and 20
To calculate the median, we need to calculate the average of the two numbers
Median = 15 + 20 / 2
= 35 / 2
= 17.5
For the first doctor the median of the waiting time is 17.5
Second doctor
We need to calculate the median as well
The middle numbers are 20 and 20
Median = 20 + 20 / 2
Median = 40 / 2
Median = 20
For the second doctor, the median is 20
Therefore, the second doctor is 2.5 longer than the first doctor.