The LCM of two numbers is 24 and the GCF is 4. If one of the numbers is 12, what is the other number?