Let the two numbers be 5a and 5b. That takes care of the HCF. So we divide 100 by the HCF to get 20. The two numbers must be factors of 20, but there must be no other common factor. That leaves 4 and 5, so the two numbers are 5*4 and 5*5, that is, 20 and 25.