Troy Is selling homemade cake slices at the football game the number of cake slice of yourselves determines how much money he earned identify the dependent and independent variables

The dependent variable in this scenario is the amount of money earned by Troy, as it is dependent on the number of cake slices sold.

The independent variable is the number of homemade cake slices sold by Troy, as this variable is being manipulated by Troy in order to determine how much money he will earn.