a simple GROUP BY query with grouping on product and total, and aggregate sum fields for qty, cost and total would solve this.
SELECT [Product#],Type,SUM(fldQty) as Qty,SUM(fldCost) as Cost,SUM(fldTotal) as Total
FROM YourTable
GROUP BY [Product#],Type