Fruit flies, like mammals, have XX females and XY males. Unlike mammals, the Y chromosome contains no SRY gene. Instead, flies determine sex by comparing the ratio of sex chromosomes to autosomes. When the number of X chromosomes is equal to the number of any autosome, then the fly is female. If the number of X chromosomes is half of the number of any autosome, then the fly is male. The Y chromosome carries genes involved in the production of sperm.
Give this information, determine the sexes of the following flies. Flies with types of polyploidy can survive.