You purchase n cartons of tennis balls at $25 per carton from an online retailer that charges 8% tax and $17 in shipping costs.

The expression 25n + (25n)0.08 + 17 can be used to represent the total cost.