What is the prime factorization of 18 and 24?

2 x 3 x 3 = 18
2 x 2 x 2 x 3 = 24
18 = 32 x 2
24 = 3 x 23