What would be the independent and dependent variable when trying to figure out if mold grows better on homemade bread or store brought bread?

the independent variable is the one you can choose.

In this case, that would be the bread.
The growth of the mold then depends on your choice.