The growth equation is
![y=a(1+r)^x](https://img.qammunity.org/2023/formulas/mathematics/college/zju8ii5bf2piwkg7euivlsfo19d8ktxf14.png)
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
![y=300(1+0.25)^x](https://img.qammunity.org/2023/formulas/mathematics/college/yq7dal6eb83jelqt43sqh2ug3usi7kjtlc.png)
Since in 2 weeks, there are 2 x 7 = 14 days
Then x = 14
Substitute x by 14 to find y
![\begin{gathered} y=300(1.25)^(14) \\ y=6821.21 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/e7uchm53ced5davloivdrouyvi4l4l77di.png)
Round it to the nearest whole number
The number of bacteria after 2 weeks is 6821