Sally used 30 cubes to build a rectangular prism that was 5 cubes long, 3 cubes wide, and 2 cubes high. She decided to take apart the prism and build another one with the same 30 cubes, but with different dimensions. What dimensions could Sally have used?