Find the total cost of an item given its weight and unit price.