We have been given that two datasets arranged in descending order are:
and
. We are asked to find the value of
, if the medians of the two given datasets are equal.
First of all, we will arrange our given data sets in ascending order.
and
![\{2,5,y,9\}](https://img.qammunity.org/2021/formulas/mathematics/college/si5pyy0fmqzmway7nodcijwd9pw6u01onh.png)
Since our data sets have 4 data points, so median will be average of middle two terms.
and
![(5+y)/(2)](https://img.qammunity.org/2021/formulas/mathematics/college/3a4wxx3eqvqcuu59wuj9bcnl87tr2om86e.png)
Now we will equate both median as we are told that median of both data sets are equal.
![(5+y)/(2)=(4+x)/(2)](https://img.qammunity.org/2021/formulas/mathematics/college/jxwj6gj5b5ry51jrqoi7jbn7rqepskikum.png)
Cross multiply:
![2(5+y)=2(4+x)](https://img.qammunity.org/2021/formulas/mathematics/college/nbs4c711l0qkh9ekpdtmg34whdoz2val43.png)
Divide both sides by 2:
![(2(5+y))/(2)=(2(4+x))/(2)](https://img.qammunity.org/2021/formulas/mathematics/college/va31r8uyre35leidlboba6c83jxc7t3d99.png)
![5+y=4+x](https://img.qammunity.org/2021/formulas/mathematics/college/c84plffmraf6icsc1zf7h31xi6wpdjd7is.png)
![5-5+y-x=4-5+x-x](https://img.qammunity.org/2021/formulas/mathematics/college/4g0h610k47806uxn7lt2vgbez2qprklbj9.png)
![y-x=-1](https://img.qammunity.org/2021/formulas/mathematics/college/r2qzhuu53x93jcqxrje568xyuql1dvlrje.png)
Let us square both sides of our equation.
![(y-x)^2=(-1)^2](https://img.qammunity.org/2021/formulas/mathematics/college/cjj126jrhepowk76mjwre1eay7935lc2ff.png)
![(y-x)^2=1](https://img.qammunity.org/2021/formulas/mathematics/college/pz5ry54eyr3sdswyr746zpqxczl0irswio.png)
Therefore, the value of
would be 1.