How do we use greatest common factors and least common multiples?