Find least and greatest common divisors of two numbers.

Note: Both numbers should be greater than 2.