To find greatest number of cartons each stack would have, we should find HCF of 144 and 90
Prime factors of 144 = 2 × 2 × 2 × 2 × 3 × 3
Prime factors of 90 = 2 × 3 × 3 × 5
Therefore HCF of 144 and 90 is:
2 × 3 × 3 = 18
Therefore the greatest number of cartons each stack would have is: 18