HCF stands for Highest Common Factor while LCM stands for Least Common Multiple.
⇒ HCF of two numbers must be a factor of LCM of those numbers
According to the question, HCF = 18 and LCM = 380
But 380 is not divisible by 18. So, two numbers cannot have 18 and 380 as their HCF and LCM respectively.