What is the greatest common factor of 18, 24, and 36?
A. 2 B. 3 C. 4 D. 6