Troy is selling homemade cake slices at the football game the number of cake slices he sells, determined how much money he earns identify the dependent independent variables

The dependent variable in this scenario is the amount of money Troy earns. This variable is dependent on the independent variable, which is the number of cake slices he sells.