Since matrix has 18 elements,
No. of rows×No. of columns=18
1×18=18 18×1=18
2×9=18 9×2=18
3×6=18 6×3=18
Hence, possible orders are
1×18,2×9,3×6,18×1,9×2,6×3
If matrix has 5 elements.
No. of rows×No. of columns=5
1×5=5 or 5×1=5
Hence, possible orders are 1×5 and 5×1.