Write an equation to calculate the total cost of a product.
Input: Price of the product = $24
Quantity = 3
Shipping cost = $8
Total cost = 3 x 24 + 8 = $87.
The total cost of the product is $32 (24 + 8).