Dear student,
Fundamental theorem of arithmetic states that: Every composite number can be expressed as a product of primes and this factorization is unique.
Yes, two nos. can have 18 and 378 as their HCF and LCM respectively as the HCF is always supposed to be the factor of the LCM
Here,
378/18=21
Regards.