Answer:
The answer to your question is below
Step-by-step explanation:
Data
Volume = 270 cm³
height = 5 cm
length = ?
width = ?
Formula 
Volume of a rectangular prism = height x length x width
- Solve for Area of the base (height x length)
Area of the base = Volume / height
-Substitution
Area of the base = 270 / 5
-Result
Area of the base = 54 m²
2.- Find the prime factors of 54
                     54   2
                     27   3
                       9   3
                       3   3
                        1
3.- The possible values of the sidas of the rectangle are:
Combining the prime factor of 54.
               Length                        Width
               2 x 3 = 6           and    3 x 3 = 9
or            2 x 3 x 3 = 18   and    3 x 1 = 3
or            3 x 3 x 3 = 27  and     2 x 1 = 2