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