The correct option is A 3 weeks
Houseflies live for up to 3 weeks and are active during the warmer part of the year. An adult female deposits 50 to 100 eggs at a time and about 500 eggs over her lifetime. The eggs are deposited in rotting organic matter. They hatch after about 12 hours and the larvae, or maggots, feed on the rotting organic material. A maggot passes through three larval stages and then forms a pupa, or cocoon. The adult fly emerges from the cocoon. Houseflies typically develop from egg to adult within 10 days.