Work out each category's share