By prime factorisation, we know;
Factors of 36 = 1, 2, 3, 4, 6, 9, 12, 18 and 36
Factors of 24 = 1, 2, 3, 4, 6, 8, 12 and 24
HCF of (24,36) = 12