Matt and Mindy each built a rectangular prism that has the length of 5 units, the width of 2 units, and the height of 4 units. Matt used cubes that are 1 cm on each side. Mindy used cubes that are in 1 in on each side. What is the volume of each prism?