Question 8
Parcels come in small, medium and large sizes. The cabinet has compartments of types 1,2,3 as shown. Initially, X marks an occupied compartment; all others are empty.

Each compartment holds at most one parcel. Small parcels fit every type, medium parcels fit types 2 and 3, and large parcels fit only type 3. Each new parcel goes into the lowest-numbered empty compartment that can hold it. The events are:
1. Add two small parcels.
2. Remove the parcel in compartment 22.
3. Add one large parcel.
4. Add three small parcels.
5. Remove the parcel in compartment 15.
6. Add one medium parcel.
7. Remove the parcel in compartment 18.
8. Add one small parcel.
Which compartment receives the last parcel?

Each compartment holds at most one parcel. Small parcels fit every type, medium parcels fit types 2 and 3, and large parcels fit only type 3. Each new parcel goes into the lowest-numbered empty compartment that can hold it. The events are:
1. Add two small parcels.
2. Remove the parcel in compartment 22.
3. Add one large parcel.
4. Add three small parcels.
5. Remove the parcel in compartment 15.
6. Add one medium parcel.
7. Remove the parcel in compartment 18.
8. Add one small parcel.
Which compartment receives the last parcel?