the cost of d drinks at $2 each and 5 pies at $n each Total cost = Price * Quantity: Total cost = 2d + 5n