Answer:
Step-by-step explanation:
The dog has fleas, but the medicine to counter this does not work. This means that the fleas have built up a resistance against the drug to ensure continued survival and reproductive success of these organisms. These resistant fleas may have existed in population as the population is always large but in small amounts. Thus, treatment with the drug will lead to the dieing out of the sensitive fleas and then leaving the resistant fleas with the favourable alleles to be selected for.
These favourable traits that have evolved against the drugs are then selected for and the organisms reproduce giving rise to more fleas with these favourable characteristics (being resistant to the drugs) such that their continued survival and reproductive is ensured compared to the sensitive fleas that die out.