Step-by-step explanation:
none of the dimensions match, so there will be always some wiggle room.
but the important factor is to which dimension of the bag are we assigning the height of the pizza box ?
if we assign it to the height of the bag, we can fit only
30/3.5 = 8.571428571... ≈ 8 full pizza boxes into the bag.
but if we assign the height of the box to either the width or the length of the bag, we can fit
35/3.5 = 10 pizza boxes into the bag.
the other dimensions of the boxes fit easily to the other bag dimensions.
BUT - that means the pizza boxes would have to stand on their sides, which is not good for the pizzas inside.
therefore, the bag would have to be twisted/turned to allow the pizza boxes to be flat in the bag (while the bag itself is standing strangely).
if that is not possible, we would have to go with the first solution.