Hello Anup dear, let x be the number of males.
So number of females will be 50000 - x
Now male population after one year = x * 105/100
And female population = (50000 - x) * 103/100
Total population = (105 x - 103 x + 103 * 50000) /100
==> (2 x + 103 * 50000 )/100 = 52020
===> 2 x = 5202000 - 5150000 = 52000
Thus x = 26000
Hence males in the previous year = 26000
And females = 24000