Given details are,
Growth rate of population of town is = 50/1000×100 = 5%
Population after 2 years is = 22050
So, let present population of town be = x
By using the formula,
A = P (1 + R/100)
22050 = x (1 + 5/100) (1 + 5/100)
22050 = x (105/100) (105/100)
22050 = x (1.05) (1.05)
22050 = 1.1025x
x = 22050/1.1025
= 20000
∴ Present population of the town is 20000.