Suppose soda is on a sale for $0.50 a can, and you have a coupon for $0.80 off your total purchase. Write a function rule for the cost of n cans of soda.

Cost of n cans of soda = 0.50n - 0.80

To write a function rule for the cost of n cans of soda, we can break it down into steps.

Step 1: Determine the cost per can
Given that each can of soda is on sale for $0.50, the cost per can is $0.50.

Step 2: Calculate the total cost without using the coupon
To calculate the total cost without using the coupon, we multiply the cost per can by the number of cans purchased. Therefore, the total cost without using the coupon is n * $0.50.

Step 3: Apply the coupon
The coupon provides a discount of $0.80 off the total purchase. To calculate the final cost after applying the coupon, we subtract the coupon amount from the total cost without using the coupon. Therefore, the final cost after applying the coupon is (n * $0.50) - $0.80.

Thus, the function rule for the cost of n cans of soda can be written as:

Total Cost = (n * $0.50) - $0.80