If a = 2 × 3 × 5 and B = 2 × 5 × 7, what is the greatest common factor and the least common multiple of a and B?

If a = 2 × 3 × 5 and B = 2 × 5 × 7, what is the greatest common factor and the least common multiple of a and B?

The greatest common factor of a and B is 2 × 5 = 10
The least common multiple is 2 × 5 × 3 × 7 = 210