We need 5 positive integers with same median, which means our 1st three numbers will be 1,2,3.
now mean should be 4
i.e (n1+n2+n3+n4+n5)5=4
=1+2+3+n4+n55=4 as 6+n4+n5=20
n4+n5=14
So, we will take one pair as 5,9 and other as 4and10
∴
S=(1,2,3,5,9)
=(1,2,3,4,10)