what number is a factor of 12 and 24