Create category_stock with one row per category: products (count) and units (total stock).
category_stock
category
products
units
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.