How to find HCF of expressions