Finding the Lowest Common Denominator (LCD)