Malia used unit cubes to build a big cube that was 4 units long, 4 units wide, and 4 units tall. Then she used unit cubes to build a rectangular prism that was 4 units long, 2 units wide, and 8 units tall. How does the volume of Malia's cube compare to the volume of her rectangular prism?