The growth equation is
[tex]y=a(1+r)^x[/tex]Where:
a is the initial amount
r is the rate of growth in decimal
Since at the time he put the cupcake, there were 300 bacteria
Then a = 300
Since the bacteria is growing by 25%
r = 25/100 = 0.25
Substitute them in the form of the equation above
[tex]y=300(1+0.25)^x[/tex]Since in 2 weeks, there are 2 x 7 = 14 days
Then x = 14
Substitute x by 14 to find y
[tex]\begin{gathered} y=300(1.25)^{14} \\ y=6821.21 \end{gathered}[/tex]Round it to the nearest whole number
The number of bacteria after 2 weeks is 6821