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

. If Troy sells 50 slices of cake at $2 per slice, he will earn $100. If he sells 100 slices, he will earn $200. The more cake slices he sells, the more money he will earn. Troy's goal is to sell as many cake slices as possible to maximize his earnings.