Here, before adding 50, the total number of observations = 7
7, 10, 15, x, y, 27, 30
The above is the set of observations arranged in ascending order.
Here, n = 7
So, since the number of observations is odd, the median =(n+12)th term=17⇒(7+12)th term=4th term=17
The fourth term is x here.
S0, x = 17
Now, when 50 is added to the above set of observations, the number of observations,n becomes 8.
Now, this contains an even number of observations.
7, 10, 15, 17, y, 27, 30, 50
So, median=nth2 term+(n2+1)th term2=18⇒ 8th2 term+(82+1)th term2=18⇒ 4th term+5th term2=18⇒ 17+y2=18⇒ 17+y=36⇒ y=19