what is the medium of 5,000 and 20,000
It is not called the "medium", but the "MEDIAN"!!:
20,000 + 5,000=25,000 / 2 =12,500.