Answer :
To find the missing number first we arrange given number in ascending order , As :
16 , 18 , 20 , p , 28 , 35 , 37 , 40
we place p as our given median is 26 , so that obtain by the mean of two middle number , So ,
= 26
p + 28 = 52
p = 24 ( Ans )