A company puts bottles of lotions into boxes that are 3 inch cubes. The boxes were then backed into a shipping crate that is a 2 foot cube. How many boxes of lotion were packed into the shipping crate to fill it completely?