Troy is selling homemade cake slices at the football game. The number of cakes slices he sells determines how much money he earns. Identify the dependent and the independent variables

The dependent variable is the amount of money earned, as it is dependent on the number of cake slices sold, which is the independent variable.