A is the fungus used in bread making and B is the fungus that spoils moist bread. The fungi A and B respectively belong to classes
Fungus A involved in bread making is yeast and it belongs to class Ascomycetes. Fungus B that spoils the moist bread is Rhizopus and it belongs to class phycomycetes.