The answer is 8069 insects
P(t) = A e^(rt)
P(t) - the insect population at the end of t weeks.
A - the initial number of insects
r - the growth rate
t - number of weeks
P(t) = ?
A = 20
r = 50% = 0.5
t = 12 weeks
P(t) = 20 e^(0.512)
P(t) = 20
P(t) = 20 e^(0.512)
P(t) = 20 403.43
P(t) ≈ 8069 insects