Well the volume of dirt she needs to remove is equal to length*width*height=6.2*4.9*0.225=6.8355
Now let's find how many bags she needs.
To solve for this, simply divide room in bags from total room.
6.8355/0.87=7.857
Thus Zoe has barely enough, but enough bags.