Arturo O. answered  04/15/20
Experienced Physics Teacher for Physics Tutoring
The exponential growth law for this problem is
P(t) = 4000 (1.02)t
where t is years elapsed since the population was 4000. Set P(t)=5100 and solve for t.
5100 = 4000 (1.02)t
5100 / 4000 = 1.02t
log(5100 / 4000) = t log1.02
You can finish from here. Use any base for the log as long as it is the same in both places.