Veronica builds a square prism using 27 cubes that measure 1 inch by 1 inch on each side. What could be the dimensions of her square prism?

Length: 1 Width:3 Height: 9
Length: 3 Width: 3 Height: 3
Length: 2 Width:2 Height:7
Length: 10 Width: 7 Height: 10

The correct dimensions of Veronica's square prism would be:

Length: 3 Width: 3 Height: 3