Candy is on sale for $0.75 each. You have a coupon for $0.25 off your total purchase. Write a function rule for the cost of n pieces of candy.

The function rule for the cost of n pieces of candy can be written as follows:

Cost(n) = n * (0.75 - 0.25)
= n * 0.50
= 0.50n