What types of problems can be solved using the greatest common factor? what types of problems can be solved using the least common multiple?