Highest common factors (HCF) and lowest common multiple (LCM)