Answer:
g is the dependent variable; and u is the independent variable.
Explanation:
We are given equation
, where g is the total number of gallons of water used and u is the number of units.
Now, the number of units of water does not depend on the total number of gallons of water used. Now u is the variable that causes g to change.
So, u is an independent variable.
But the total number of gallons depends on the number of units used. As when more gallons are used, more units will be generated.
Therefore, g is a dependent variable.