add a new column to the cart called shipRate.
in the Add to cart behavior for widget 1, set the shipRate column to 6.95
in the add to cart behavior for widget 2, set the shipRate column to 16.95.
on the calculations tab, create a new calculation called itemShipping as:
((ceil([Quantity] / 5)) * [shipRate])
on the shipping tab, create a new shipping rule, use the trigger:
"Subtotal For Any Column"
if the subtotal of column "itemShipping" is > a value of 0
set the calculation to:
"Based on multiple of column subtotal"
Subtotal of column "itemShipping" "times" "1" "plus" "0"