An example of an independent and dependent variable is a grocery bag with groceries. The dependent variable is the groceries and the independent variable is the grocery bag because without the grocery bag, the groceries would have to be carried by hand which is much harder.
Hope you understood and I wrote what you needed.
I Hope I helped!