For these types of problems, the equations of the form should be considered:
y = A * (B) ^ t
Where:
A: initial population.
B: annual exchange rate.
T: Time in years.
Then the equations of the system that must be used to find the time in which both are equal are:
1, 3,00,000 * (1-0,038) ^ t for the type of insect A
2, 1 00 000 * (1-0,046) ^ t for the type of insect B.