Exploring GCD and LCM

Task
Explore the greatest common divisor (GCD) and least common multiple (LCM) of 18 and 24.
Instructions
[table][tr][td]1.[/td][td nowrap][code]GCD(18, 24) [/code][/td][td]Type [code]GCD(18, 24)[/code] into the [i]Input Bar[/i] and press the [i]Enter [/i]key to calculate the greatest common divisor of these numbers.[/td][/tr][tr][td]2.[/td][td nowrap][code]LCM(18, 24) [/code][/td][td]Use the command [code]LCM(18, 24) [/code]to calculate the least common multiple of these numbers.[/td][/tr][/table]
Try it yourself...
Instructions (continued)
[table][tr][td]3.[/td][td nowrap][code]PrimeFactors(18)[/code][/td][td]Use the command [code]PrimeFactors(18)[/code] to get the prime factors of 18.[/td][/tr][tr][td]4.[/td][td nowrap][code]PrimeFactors(24)[/code][/td][td]Calculate the prime factors of [code]24[/code].[/td][/tr][tr][td]5.[/td][td][br][/td][td]Compare how the prime factors of both numbers relate to the greatest common divisor calculated earlier.[/td][/tr][tr][td]6.[/td][td nowrap][code]PrimeFactors(#2)[/code][/td][td]Enter [code]PrimeFactors(#2)[/code] to calculate the prime factors of the LCM in row 2.[/td][/tr][tr][td][/td][td nowrap][/td][td][b]Hint:[/b] The shortcut [code]#2[/code] allows you to refer to the output of row 2.[/td][/tr][tr][td]7.[/td][td nowrap][/td][td]Compare how the prime factors of both numbers relate to the prime factors of the least common multiple calculated earlier.[/td][/tr][/table]

Information: Exploring GCD and LCM