Given:
half life of substance = 40 minutes
If the substance starts with 400g ang only 2g is left.
To find the time elapsed we have:

Thus, we have:

Solving further:

Therefore, the time elapsed until there is only 2g left is 305.75 minutes
ANSWER:
305.75 minutes