Hi Denise,
For this to work you will actually need to create a couple of Shipping profiles in the admin. You can go to “Settings” > “Shipping and delivery” and there you will be able to create your custom profiles. Make a profile per group, add the products and the shipping cost to that group and the rest should go automatticly.
I hope this helps.